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:
parent
0673bc57e4
commit
3a04c46a48
@ -31,7 +31,7 @@
|
|||||||
__FBSDID("$FreeBSD: src/sbin/gpt/gpt.c,v 1.16 2006/07/07 02:44:23 marcel Exp $");
|
__FBSDID("$FreeBSD: src/sbin/gpt/gpt.c,v 1.16 2006/07/07 02:44:23 marcel Exp $");
|
||||||
#endif
|
#endif
|
||||||
#ifdef __RCSID
|
#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
|
#endif
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -756,7 +756,7 @@ usage(void)
|
|||||||
getprogname(), destroymsg,
|
getprogname(), destroymsg,
|
||||||
getprogname(), labelmsg1,
|
getprogname(), labelmsg1,
|
||||||
getprogname(), labelmsg2,
|
getprogname(), labelmsg2,
|
||||||
strlen(getprogname()), "", labelmsg3,
|
(int)strlen(getprogname()), "", labelmsg3,
|
||||||
getprogname(), migratemsg,
|
getprogname(), migratemsg,
|
||||||
getprogname(), recovermsg,
|
getprogname(), recovermsg,
|
||||||
getprogname(), removemsg1,
|
getprogname(), removemsg1,
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
__FBSDID("$FreeBSD: src/sbin/gpt/label.c,v 1.3 2006/10/04 18:20:25 marcel Exp $");
|
__FBSDID("$FreeBSD: src/sbin/gpt/label.c,v 1.3 2006/10/04 18:20:25 marcel Exp $");
|
||||||
#endif
|
#endif
|
||||||
#ifdef __RCSID
|
#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
|
#endif
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -61,7 +61,7 @@ usage_label(void)
|
|||||||
"usage: %s %s\n"
|
"usage: %s %s\n"
|
||||||
" %s %s\n"
|
" %s %s\n"
|
||||||
" %*s %s\n", getprogname(), labelmsg1,
|
" %*s %s\n", getprogname(), labelmsg1,
|
||||||
getprogname(), labelmsg2, strlen(getprogname()), "", labelmsg3);
|
getprogname(), labelmsg2, (int)strlen(getprogname()), "", labelmsg3);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user