From 06378b342efeeda330b529290176e18d35b683c8 Mon Sep 17 00:00:00 2001 From: kan Date: Thu, 21 Sep 2006 02:01:46 +0000 Subject: Do not use int where socklen_t is expected. --- usr.sbin/IPXrouted/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/IPXrouted') 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); -- cgit v1.1