]> granicus.if.org Git - procps-ng/commit
w: fix printf compile warning
authorMike Frysinger <vapier@gentoo.org>
Sun, 20 May 2012 10:20:32 +0000 (06:20 -0400)
committerCraig Small <csmall@enc.com.au>
Tue, 22 May 2012 10:18:51 +0000 (20:18 +1000)
commit2320dc9cdbd3e57c2b2e3339e1615fd41a079b25
treef3c66b43966b5332b9f810484e9ed16e17135bcc
parent6940014c42372033c2f765ce6d2b71300b4b9288
w: fix printf compile warning

Building w on an x86_64 system triggers:
w.c:404:4: warning: format '%zu' expects argument of type 'size_t',
                    but argument 4 has type 'int' [-Wformat]

Since we're comparing UT_NAMESIZE to an int, cast it to that type
(since it can't exceed it) and update the printf.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
w.c