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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=331eb09bc5b20e6fd9daad272477cbb33e808e1b;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 6717868f72..a0e7cb66c4 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 59cb367be3..21736d33f7 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));)