]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 718] Use the recommended type for the saddrlen arg to getsockname()
authorHarlan Stenn <stenn@ntp.org>
Tue, 10 Oct 2006 06:39:26 +0000 (02:39 -0400)
committerHarlan Stenn <stenn@ntp.org>
Tue, 10 Oct 2006 06:39:26 +0000 (02:39 -0400)
bk: 452b401eJnPnwEVJ_N-ai_lFcD7vZA

NEWS
ntpd/ntp_io.c

diff --git a/NEWS b/NEWS
index 6717868f721a9e345daaed33b8d036fe6f598ee1..a0e7cb66c4f0ccfa3d686630092f9e14b9c5d224 100644 (file)
--- 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.
index 59cb367be3b8bcf82ac30904beea4e0d9ffc07ac..21736d33f72628e284503950430ebf485ae9d08f 100644 (file)
@@ -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));)