diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-09-06 21:12:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-09-06 21:12:53 +0000 |
commit | a65452e8091512f06fc0f8fa9fe5b27cab7ccda7 (patch) | |
tree | 21e4aafc1b19ecc6cf82a1b64b26c0f255b32695 /sbin | |
parent | e4ecb5fd471d209a313d6099506cb680eba2a1a6 (diff) |
socklen_t
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/routed/input.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/routed/input.c b/sbin/routed/input.c index 838ae62db09..6dce1f74c8d 100644 --- a/sbin/routed/input.c +++ b/sbin/routed/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.12 2002/09/06 18:15:55 deraadt Exp $ */ +/* $OpenBSD: input.c,v 1.13 2002/09/06 21:12:52 deraadt Exp $ */ /* * Copyright (c) 1983, 1988, 1993 @@ -36,7 +36,7 @@ #if !defined(lint) static char sccsid[] = "@(#)input.c 8.1 (Berkeley) 6/5/93"; #else -static char rcsid[] = "$OpenBSD: input.c,v 1.12 2002/09/06 18:15:55 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: input.c,v 1.13 2002/09/06 21:12:52 deraadt Exp $"; #endif #include "defs.h" @@ -53,7 +53,8 @@ read_rip(int sock, struct interface *ifp) { struct sockaddr_in from; - int fromlen, cc; + socklen_t fromlen; + int cc; union pkt_buf inbuf; @@ -67,7 +68,7 @@ read_rip(int sock, break; } if (fromlen != sizeof(struct sockaddr_in)) - logbad(1,"impossible recvfrom(rip) fromlen=%d", + logbad(1,"impossible recvfrom(rip) fromlen=%u", fromlen); input(&from, ifp, &inbuf.rip, cc); |