summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-11-21 10:31:18 -0800
committerJeremy Allison <jra@samba.org>2007-11-21 10:31:18 -0800
commitdc9237d231a39bbed988baa9371ceb785ba32665 (patch)
tree901165699c7d53c700498dca900e6974dfd8973c
parente68bbe3548df2400022a86af4681bcdf89481e9a (diff)
downloadsamba-dc9237d231a39bbed988baa9371ceb785ba32665.tar.gz
samba-dc9237d231a39bbed988baa9371ceb785ba32665.tar.bz2
samba-dc9237d231a39bbed988baa9371ceb785ba32665.zip
Doh ! Don't use #else when #endif is needed.
Jeremy. (This used to be commit a04e916b89c901911ffc0a62e57a3ec87fe7ac28)
-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)