return -1;
}
-#ifdef IPV6_SUPPORT
+#ifdef IPV6_SUPPORTED
/*
* Bind a socket using an unused privileged source port.
switch (family) {
case AF_INET:
- return bindresvport_sa(sock, (struct sockaddr *)&sin,
- (socklen_t)sizeof(sin));
+ return bindresvport_sa(sock, (struct sockaddr *)&sin);
case AF_INET6:
- return bindresvport_sa(sock, (struct sockaddr *)&sin6,
- (socklen_t)sizeof(sin6));
+ return bindresvport_sa(sock, (struct sockaddr *)&sin6);
}
errno = EAFNOSUPPORT;
return -1;
}
-#else /* !IPV6_SUPPORT */
+#else /* !IPV6_SUPPORTED */
/*
* Bind a socket using an unused privileged source port.
return bindresvport(sock, NULL);
}
-#endif /* !IPV6_SUPPORT */
+#endif /* !IPV6_SUPPORTED */
/*
* Perform a non-blocking connect on the socket fd.