artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85263cc
)
ssize_t is long on alpha, not int so cast to long in printf.
author
millert
<millert@openbsd.org>
Mon, 5 May 1997 02:49:49 +0000
(
02:49
+0000)
committer
millert
<millert@openbsd.org>
Mon, 5 May 1997 02:49:49 +0000
(
02:49
+0000)
sys/lib/libsa/net.c
patch
|
blob
|
history
diff --git
a/sys/lib/libsa/net.c
b/sys/lib/libsa/net.c
index
998340c
..
65795b1
100644
(file)
--- a/
sys/lib/libsa/net.c
+++ b/
sys/lib/libsa/net.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: net.c,v 1.
7 1996/12/08 15:15:51 niklas Exp $
*/
+/* $OpenBSD: net.c,v 1.
8 1997/05/05 02:49:49 millert Exp $
*/
/* $NetBSD: net.c,v 1.14 1996/10/13 02:29:02 christos Exp $ */
/*
@@
-230,7
+230,7
@@
readudp(d, pkt, len, tleft)
if (uh->uh_sum) {
n = ntohs(uh->uh_ulen) + sizeof(*ip);
if (n > RECV_SIZE - ETHER_SIZE) {
- printf("readudp: huge packet, udp len %
d\n",
n);
+ printf("readudp: huge packet, udp len %
ld\n", (long)
n);
return -1;
}