summaryrefslogtreecommitdiff
path: root/sbin/routed/rdisc.c
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-04-12 15:26:48 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-04-12 15:26:48 +0000
commit77712da42323afdeb719e34c69d44e7ac77c45c0 (patch)
tree2a1333ca2cfe52dd664cce8face7fcec8e76ef3b /sbin/routed/rdisc.c
parent1bbbd90b0e5d8fb9d46b64112c92fdbfd71a52e8 (diff)
A little bit of cleanup (missing format string arguments, some signed/
unsigned conversion). OK henning
Diffstat (limited to 'sbin/routed/rdisc.c')
-rw-r--r--sbin/routed/rdisc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/routed/rdisc.c b/sbin/routed/rdisc.c
index 6f59646a6e7..5d6ff906be2 100644
--- a/sbin/routed/rdisc.c
+++ b/sbin/routed/rdisc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rdisc.c,v 1.5 2003/06/02 20:06:17 millert Exp $ */
+/* $OpenBSD: rdisc.c,v 1.6 2005/04/12 15:26:47 cloder Exp $ */
/*
* Copyright (c) 1995
@@ -923,7 +923,8 @@ read_d(void)
{
static naddr bad_asize, bad_len;
struct sockaddr_in from;
- int n, fromlen, cc, hlen;
+ socklen_t fromlen;
+ int n, cc, hlen;
union {
struct ip ip;
u_short s[512/2];
@@ -945,7 +946,7 @@ read_d(void)
break;
}
if (fromlen != sizeof(struct sockaddr_in))
- logbad(1,"impossible recvfrom(rdisc_sock) fromlen=%d",
+ logbad(1,"impossible recvfrom(rdisc_sock) fromlen=%u",
fromlen);
hlen = pkt.ip.ip_hl << 2;