summaryrefslogtreecommitdiff
path: root/sys/lib
diff options
context:
space:
mode:
authorhe <he@NetBSD.org>2010-12-26 17:48:37 +0000
committerhe <he@NetBSD.org>2010-12-26 17:48:37 +0000
commit6cb7b7c24d94de50b12ed453398aa3047cf82eb3 (patch)
tree5f2b316d53b64ce181d42a7d0edb2ccf2db7f46b /sys/lib
parent3c75d0fcf54b18824ab6d3184235be92dbddaccf (diff)
Print size_t and ssize_t with %zd, not just %d.
(How did this build before?)
Diffstat (limited to 'sys/lib')
-rw-r--r--sys/lib/libsa/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libsa/udp.c b/sys/lib/libsa/udp.c
index e7556a15e07..de79a14a07c 100644
--- a/sys/lib/libsa/udp.c
+++ b/sys/lib/libsa/udp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: udp.c,v 1.8 2009/01/12 11:32:45 tsutsui Exp $ */
+/* $NetBSD: udp.c,v 1.9 2010/12/26 17:48:37 he Exp $ */
/*
* Copyright (c) 1992 Regents of the University of California.
@@ -127,7 +127,7 @@ sendudp(struct iodesc *d, void *pkt, size_t len)
if (cc == -1)
return -1;
if ((size_t)cc != len)
- panic("sendudp: bad write (%d != %d)", cc, len);
+ panic("sendudp: bad write (%zd != %zd)", cc, len);
return (cc - (sizeof(*ip) + sizeof(*uh)));
}