aboutsummaryrefslogtreecommitdiffstats
path: root/com32/menu
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/menu
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/menu')
-rw-r--r--com32/menu/menumain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/menu/menumain.c b/com32/menu/menumain.c
index b8cb06fd..ed72c087 100644
--- a/com32/menu/menumain.c
+++ b/com32/menu/menumain.c
@@ -230,7 +230,7 @@ static int ask_passwd(const char *menu_entry)
for (x = 2; x <= WIDTH - 2 * PASSWD_MARGIN - 1; x++)
putchar('q');
- printf("j\017\033[%d;%dH\2#12 %s \033[%d;%dH\2#13",
+ printf("j\017\033[%d;%zdH\2#12 %s \033[%d;%dH\2#13",
PASSWD_ROW, (WIDTH - (strlen(cm->messages[MSG_PASSPROMPT]) + 2)) / 2,
cm->messages[MSG_PASSPROMPT], PASSWD_ROW + 1, PASSWD_MARGIN + 3);