summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index f1a6d826e0..e49db340ae 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -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)