Module Name: src Committed By: he Date: Sun Dec 26 17:48:37 UTC 2010
Modified Files: src/sys/lib/libsa: udp.c Log Message: Print size_t and ssize_t with %zd, not just %d. (How did this build before?) To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/lib/libsa/udp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/lib/libsa/udp.c diff -u src/sys/lib/libsa/udp.c:1.8 src/sys/lib/libsa/udp.c:1.9 --- src/sys/lib/libsa/udp.c:1.8 Mon Jan 12 11:32:45 2009 +++ src/sys/lib/libsa/udp.c Sun Dec 26 17:48:37 2010 @@ -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))); }