Some recent patches fixed bugs where we didn't correctly zero padding bytes
inserted to correctly align out structures. However, the way it was done
potentially calls memset() with a zero length, which may not be safe on all
platforms. Correct it.
Correcting that exposes some careless mixing of signed and unsigned values,
so fix that as well.
Fixes: 5036c259132f ("libfdt: Zero padding in sequential write")
Fixes: cb9570afe7a4 ("libfdt: Zero name padding in fdt_set_name")
Fixes: ce51dcbd84 ("libfdt: Zero the padding after a property value")
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>