summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/unix.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-08-18 16:32:23 +0000
committerguenther <guenther@openbsd.org>2013-08-18 16:32:23 +0000
commit8aac6f43ce0c7c287846f699b04a3d7d488046a7 (patch)
tree13ff35a18d13810cddfa4c4e77848113e9f8e358 /usr.bin/netstat/unix.c
parentsync (diff)
downloadwireguard-openbsd-8aac6f43ce0c7c287846f699b04a3d7d488046a7.tar.xz
wireguard-openbsd-8aac6f43ce0c7c287846f699b04a3d7d488046a7.zip
Fix calls to printf-like functions which passed a non-fixed string
as the format and no variable args. Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied on numeric conversions when a precision is specified. ok jung@ millert@ krw@
Diffstat (limited to 'usr.bin/netstat/unix.c')
-rw-r--r--usr.bin/netstat/unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/unix.c b/usr.bin/netstat/unix.c
index 3323355806a..2a95b272499 100644
--- a/usr.bin/netstat/unix.c
+++ b/usr.bin/netstat/unix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unix.c,v 1.19 2013/04/23 23:32:46 deraadt Exp $ */
+/* $OpenBSD: unix.c,v 1.20 2013/08/18 16:32:24 guenther Exp $ */
/* $NetBSD: unix.c,v 1.13 1995/10/03 21:42:48 thorpej Exp $ */
/*-
@@ -159,7 +159,7 @@ unpcb_dump(u_long off)
pp("%p", unp_refs, ", ");
pp("%p", unp_nextref, "\n ");
pp("%p", unp_addr, "\n ");
- p("%#0.8x", unp_flags, "\n ");
+ p("%#.8x", unp_flags, "\n ");
p("%u", unp_connid.uid, ", ");
p("%u", unp_connid.gid, ", ");
p("%d", unp_connid.pid, "\n ");