diff options
| author | he <he@NetBSD.org> | 2010-12-26 17:48:37 +0000 |
|---|---|---|
| committer | he <he@NetBSD.org> | 2010-12-26 17:48:37 +0000 |
| commit | 6cb7b7c24d94de50b12ed453398aa3047cf82eb3 (patch) | |
| tree | 5f2b316d53b64ce181d42a7d0edb2ccf2db7f46b | |
| parent | 3c75d0fcf54b18824ab6d3184235be92dbddaccf (diff) | |
Print size_t and ssize_t with %zd, not just %d.
(How did this build before?)
| -rw-r--r-- | sys/lib/libsa/udp.c | 4 |
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))); } |
