Doh ! Don't use #else when #endif is needed.
authorJeremy Allison <jra@samba.org>
Wed, 21 Nov 2007 18:31:18 +0000 (10:31 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 21 Nov 2007 18:31:18 +0000 (10:31 -0800)
Jeremy.
(This used to be commit a04e916b89c901911ffc0a62e57a3ec87fe7ac28)

source3/lib/util_sock.c

index f1a6d826e074bc0996c1b21b4f696bd3fb54e34e..e49db340ae0f2246d5a838221322ecc2060d8998 100644 (file)
@@ -633,11 +633,10 @@ void set_sockaddr_port(struct sockaddr_storage *psa, uint16 port)
        if (psa->ss_family == AF_INET6) {
                ((struct sockaddr_in6 *)psa)->sin6_port = htons(port);
        }
-#else
+#endif
        if (psa->ss_family == AF_INET) {
                ((struct sockaddr_in *)psa)->sin_port = htons(port);
        }
-#endif
 }
 
 const char *client_name(int fd)