]> granicus.if.org Git - libevent/commitdiff
Remove some commented-out code in evutil
authorNick Mathewson <nickm@torproject.org>
Thu, 21 Jan 2010 06:51:40 +0000 (01:51 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 21 Jan 2010 06:51:40 +0000 (01:51 -0500)
evutil.c

index 7bd7a8b3d718a575eba8994830407d0e948ff570..c75c8471b3f1e49a5b4dc881c3af25b68c6518d5 100644 (file)
--- a/evutil.c
+++ b/evutil.c
@@ -1859,13 +1859,6 @@ evutil_sockaddr_is_loopback(const struct sockaddr *addr)
                return (ntohl(sin->sin_addr.s_addr) & 0xff000000) == 0x7f000000;
        } else if (addr->sa_family == AF_INET6) {
                struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)addr;
-               /*
-               int i;
-               for (i=0;i<14;++i)
-                       if (sin6->sin6_addr.s6_addr[i] != 0)
-                               return 1;
-               return sin6->sin6_addr.s6_addr[15] == 1;
-               */
                return !memcmp(sin6->sin6_addr.s6_addr, LOOPBACK_S6, 16);
        }
        return 0;