From: Harlan Stenn Date: Tue, 10 Oct 2006 06:39:26 +0000 (-0400) Subject: [Bug 718] Use the recommended type for the saddrlen arg to getsockname() X-Git-Tag: NTP_4_2_3P54~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9239a7090dbf22bda565e6745b0bbc3d100356e1;p=thirdparty%2Fntp.git [Bug 718] Use the recommended type for the saddrlen arg to getsockname() bk: 452b401eJnPnwEVJ_N-ai_lFcD7vZA --- diff --git a/NEWS b/NEWS index 6717868f7..a0e7cb66c 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +* [Bug 718] Use the recommended type for the saddrlen arg to getsockname(). * [Bug 715] Fix a multicast issue under Linux. * [Bug 690] Fix a Windows DNS lookup buffer overflow. * [Bug 670] Resolved a Windows issue with the dynamic interface rescan code. diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c index 59cb367be..21736d33f 100644 --- a/ntpd/ntp_io.c +++ b/ntpd/ntp_io.c @@ -3144,7 +3144,7 @@ findlocalinterface( int rtn; struct interface *interface; struct sockaddr_storage saddr; - size_t saddrlen = SOCKLEN(addr); + socklen_t saddrlen = SOCKLEN(addr); DPRINTF(4, ("Finding interface for addr %s in list of addresses\n", stoa(addr));)