mirror of
https://github.com/samba-team/samba.git
synced 2025-09-19 13:44:20 +03:00
Doh ! Don't use #else when #endif is needed.
Jeremy.
This commit is contained in:
@@ -633,11 +633,10 @@ void set_sockaddr_port(struct sockaddr_storage *psa, uint16 port)
|
|||||||
if (psa->ss_family == AF_INET6) {
|
if (psa->ss_family == AF_INET6) {
|
||||||
((struct sockaddr_in6 *)psa)->sin6_port = htons(port);
|
((struct sockaddr_in6 *)psa)->sin6_port = htons(port);
|
||||||
}
|
}
|
||||||
#else
|
#endif
|
||||||
if (psa->ss_family == AF_INET) {
|
if (psa->ss_family == AF_INET) {
|
||||||
((struct sockaddr_in *)psa)->sin_port = htons(port);
|
((struct sockaddr_in *)psa)->sin_port = htons(port);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *client_name(int fd)
|
const char *client_name(int fd)
|
||||||
|
Reference in New Issue
Block a user