"gcc (SUSE Linux) 4.8.1
20130909 [gcc-4_8-branch revision 202388]"
issued the following warning:
warning: format ‘%zu’ expects argument of type ‘size_t’, \
but argument 3 has type ‘int’ [-Wformat=]
* misc-utils/mcookie.c (main): Change format from %zu to %d.
RAND_BYTES is an enum, thus of type int.
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
random_get_bytes(&buf, RAND_BYTES);
MD5Update(&ctl.ctx, buf, RAND_BYTES);
if (ctl.verbose)
- fprintf(stderr, P_("Got %zu byte from %s\n",
- "Got %zu bytes from %s\n", RAND_BYTES),
+ fprintf(stderr, P_("Got %d byte from %s\n",
+ "Got %d bytes from %s\n", RAND_BYTES),
RAND_BYTES, random_tell_source());
MD5Final(digest, &ctl.ctx);