Your friendly neighborhood 64-bit architecture here to remind you that

strlen returns size_t, and printf's precision specifier uses int.
This commit is contained in:
dogcow 2007-12-19 05:48:33 +00:00
parent 0673bc57e4
commit 3a04c46a48
2 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/gpt.c,v 1.16 2006/07/07 02:44:23 marcel Exp $");
#endif
#ifdef __RCSID
__RCSID("$NetBSD: gpt.c,v 1.5 2007/12/18 21:46:46 riz Exp $");
__RCSID("$NetBSD: gpt.c,v 1.6 2007/12/19 05:48:33 dogcow Exp $");
#endif
#include <sys/param.h>
@ -756,7 +756,7 @@ usage(void)
getprogname(), destroymsg,
getprogname(), labelmsg1,
getprogname(), labelmsg2,
strlen(getprogname()), "", labelmsg3,
(int)strlen(getprogname()), "", labelmsg3,
getprogname(), migratemsg,
getprogname(), recovermsg,
getprogname(), removemsg1,

View File

@ -29,7 +29,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/label.c,v 1.3 2006/10/04 18:20:25 marcel Exp $");
#endif
#ifdef __RCSID
__RCSID("$NetBSD: label.c,v 1.5 2007/12/18 21:46:46 riz Exp $");
__RCSID("$NetBSD: label.c,v 1.6 2007/12/19 05:48:34 dogcow Exp $");
#endif
#include <sys/types.h>
@ -61,7 +61,7 @@ usage_label(void)
"usage: %s %s\n"
" %s %s\n"
" %*s %s\n", getprogname(), labelmsg1,
getprogname(), labelmsg2, strlen(getprogname()), "", labelmsg3);
getprogname(), labelmsg2, (int)strlen(getprogname()), "", labelmsg3);
exit(1);
}