Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libsa Use %zd for ssize_t, and %zu for size_t.



details:   https://anonhg.NetBSD.org/src/rev/f422038b83a2
branches:  trunk
changeset: 764952:f422038b83a2
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Fri May 13 23:35:09 2011 +0000

description:
Use %zd for ssize_t, and %zu for size_t.

diffstat:

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

diffs (18 lines):

diff -r b9aeb4e59316 -r f422038b83a2 sys/lib/libsa/ip.c
--- a/sys/lib/libsa/ip.c        Fri May 13 23:14:36 2011 +0000
+++ b/sys/lib/libsa/ip.c        Fri May 13 23:35:09 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip.c,v 1.1 2011/05/11 16:23:40 zoltan Exp $ */
+/* $NetBSD: ip.c,v 1.2 2011/05/13 23:35:09 nakayama Exp $ */
 
 /*
  * Copyright (c) 1992 Regents of the University of California.
@@ -106,7 +106,7 @@
        if (cc == -1)
                return -1;
        if ((size_t) cc != len)
-               panic("sendip: bad write (%d != %d)", cc, len);
+               panic("sendip: bad write (%zd != %zu)", cc, len);
        return (cc - (sizeof(*ip)));
 }
 



Home | Main Index | Thread Index | Old Index