]> sjero.net Git - wget/commitdiff
[svn] Renamed sa_len to addrlen because IRIX defines sa_len as macro.
authorhniksic <devnull@localhost>
Thu, 27 Nov 2003 10:59:41 +0000 (02:59 -0800)
committerhniksic <devnull@localhost>
Thu, 27 Nov 2003 10:59:41 +0000 (02:59 -0800)
src/ChangeLog
src/connect.c

index c6a4f660f14b12e131483f8b4872ce6bff9da41f..a077cd68ae00e51c55cf29089263a55761f99c0e 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-27  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * connect.c (bind_local): Rename sa_len to addrlen because IRIX
+       headers define sa_len as a macro.
+
 2003-11-26  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * html-parse.c (convert_and_copy): Remove embedded newlines when
index 83c5014b3e5ea24f8dd3bfe9df6d317939adc9b5..e2bacf40e41f2d24aa7cf2d6da8cd06303b326ca 100644 (file)
@@ -447,8 +447,8 @@ bind_local (const ip_address *bind_address, int *port)
   /* If *PORT is 0, find out which port we've bound to.  */
   if (*port == 0)
     {
-      socklen_t sa_len = sockaddr_size (sa);
-      if (getsockname (sock, sa, &sa_len) < 0)
+      socklen_t addrlen = sockaddr_size (sa);
+      if (getsockname (sock, sa, &addrlen) < 0)
        {
          /* If we can't find out the socket's local address ("name"),
             something is seriously wrong with the socket, and it's