]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mcookie: avoid format warning
authorBernhard Voelker <mail@bernhard-voelker.de>
Thu, 24 Jul 2014 13:30:54 +0000 (15:30 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 28 Jul 2014 09:09:49 +0000 (11:09 +0200)
commitada74f3f322e672ed4f546eec0b7539566e09a90
tree06d9cbfb658a64bf88a605e266f0a3799005ec38
parente9b6e76a267760bf821ae3c815b0f09874a016db
mcookie: avoid format warning

"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>
misc-utils/mcookie.c