From: Ted Lemon Date: Tue, 1 Feb 2000 18:19:48 +0000 (+0000) Subject: Use socklen_t only for recvfrom. X-Git-Tag: V3-BETA-2-PATCH-1~368 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdea876e5699d169dad757f2ddc979d6a110cc7a;p=thirdparty%2Fdhcp.git Use socklen_t only for recvfrom. --- diff --git a/common/icmp.c b/common/icmp.c index c13dcf28d..02e2150f6 100644 --- a/common/icmp.c +++ b/common/icmp.c @@ -23,7 +23,7 @@ #ifndef lint static char copyright[] = -"$Id: icmp.c,v 1.18 2000/02/01 03:19:38 mellon Exp $ Copyright (c) 1997, 1998 The Internet Software Consortium. All rights reserved.\n"; +"$Id: icmp.c,v 1.19 2000/02/01 18:19:48 mellon Exp $ Copyright (c) 1997, 1998 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -163,16 +163,16 @@ isc_result_t icmp_echoreply (h) struct sockaddr_in from; unsigned char icbuf [1500]; int status; - socklen_t len; - int hlen; + socklen_t sl; + int hlen, len; struct iaddr ia; struct icmp_state *state; state = (struct icmp_state *)h; - len = sizeof from; + sl = sizeof from; status = recvfrom (state -> socket, (char *)icbuf, sizeof icbuf, 0, - (struct sockaddr *)&from, &len); + (struct sockaddr *)&from, &sl); if (status < 0) { log_error ("icmp_echoreply: %m"); return ISC_R_UNEXPECTED;