summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-05-05 02:49:50 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-05-05 02:49:50 +0000
commit6ae3a631a6782bbdecf59a834ca684922d92f612 (patch)
tree70dcb14bcaaefd41cc3bcdf3f7c4ade95a0a1fe1
parentd296bfe10407f9060ff9206cb5402247da11f55c (diff)
ssize_t is long on alpha, not int so cast to long in printf.
-rw-r--r--sys/lib/libsa/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libsa/net.c b/sys/lib/libsa/net.c
index 998340cd997..65795b1a0ee 100644
--- 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;
}