summaryrefslogtreecommitdiffstats
path: root/usr.sbin/IPXrouted
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2006-09-21 02:01:46 +0000
committerkan <kan@FreeBSD.org>2006-09-21 02:01:46 +0000
commit06378b342efeeda330b529290176e18d35b683c8 (patch)
tree067849566294a8420a480e83cec0e1f47f643a48 /usr.sbin/IPXrouted
parent8c74632d44dc29a42301e992df2819275d38337f (diff)
downloadFreeBSD-src-06378b342efeeda330b529290176e18d35b683c8.zip
FreeBSD-src-06378b342efeeda330b529290176e18d35b683c8.tar.gz
Do not use int where socklen_t is expected.
Diffstat (limited to 'usr.sbin/IPXrouted')
-rw-r--r--usr.sbin/IPXrouted/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/IPXrouted/main.c b/usr.sbin/IPXrouted/main.c
index 8c84161..773410a 100644
--- a/usr.sbin/IPXrouted/main.c
+++ b/usr.sbin/IPXrouted/main.c
@@ -276,7 +276,8 @@ process(fd, pkt_type)
int pkt_type;
{
struct sockaddr from;
- int fromlen = sizeof (from), cc, omask;
+ int cc, omask;
+ socklen_t fromlen = sizeof (from);
struct ipx *ipxdp = (struct ipx *)packet;
cc = recvfrom(fd, packet, sizeof (packet), 0, &from, &fromlen);
OpenPOWER on IntegriCloud