aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib
diff options
context:
space:
mode:
authorMartin Str|mberg <ams@ludd.ltu.se>2014-12-18 21:34:00 -0500
committerGene Cumm <gene.cumm@gmail.com>2015-01-05 20:43:13 -0500
commit5270b9e01c7f5220c989eff7de3dac7c2ac69dd8 (patch)
tree81fb9d0814cfdea049ac63eb7ead90beb26abb44 /com32/lib
parent3106dcd19061b4443c5beba4f0e09412e8d37fbe (diff)
downloadsyslinux-5270b9e01c7f5220c989eff7de3dac7c2ac69dd8.tar.gz
syslinux-5270b9e01c7f5220c989eff7de3dac7c2ac69dd8.tar.xz
syslinux-5270b9e01c7f5220c989eff7de3dac7c2ac69dd8.zip
com32: Use z size specifier for printf-ing size_t variable
Use the z size specifier to printf-ing size_t variables to get rid of gcc warning format ‘%08x’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ Author: Martin Str|mberg <ams@ludd.ltu.se> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'com32/lib')
-rw-r--r--com32/lib/syslinux/initramfs_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/syslinux/initramfs_file.c b/com32/lib/syslinux/initramfs_file.c
index 7eb55b5e..9f9fa753 100644
--- a/com32/lib/syslinux/initramfs_file.c
+++ b/com32/lib/syslinux/initramfs_file.c
@@ -126,7 +126,7 @@ int initramfs_mknod(struct initramfs *ihead, const char *filename,
if (do_mkdir)
bp += initramfs_mkdirs(filename, bp, bytes);
- bp += sprintf(bp, "070701%08x%08x%08x%08x%08x%08x%08x%08x%08x"
+ bp += sprintf(bp, "070701%08x%08x%08x%08x%08x%08x%08zx%08x%08x"
"%08x%08x%08x%08x", next_ino++, mode,
0, 0, 1, 0, len, 0, 1, major, minor, namelen + 1, 0);
memcpy(bp, filename, namelen);