Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libsa Print size_t and ssize_t with %zd, not just %d.



details:   https://anonhg.NetBSD.org/src/rev/bb47a0c47621
branches:  trunk
changeset: 760098:bb47a0c47621
user:      he <he%NetBSD.org@localhost>
date:      Sun Dec 26 17:48:37 2010 +0000

description:
Print size_t and ssize_t with %zd, not just %d.
(How did this build before?)

diffstat:

 sys/lib/libsa/udp.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 95d4a7cfb1b3 -r bb47a0c47621 sys/lib/libsa/udp.c
--- a/sys/lib/libsa/udp.c       Sun Dec 26 14:48:34 2010 +0000
+++ b/sys/lib/libsa/udp.c       Sun Dec 26 17:48:37 2010 +0000
@@ -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 @@
        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)));
 }
 



Home | Main Index | Thread Index | Old Index