mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
socklen_t.
This commit is contained in:
@@ -80,7 +80,7 @@ bindresvport_sa(sd, sa)
|
|||||||
#endif
|
#endif
|
||||||
int proto, portrange, portlow;
|
int proto, portrange, portlow;
|
||||||
u_int16_t port;
|
u_int16_t port;
|
||||||
int salen;
|
socklen_t salen;
|
||||||
|
|
||||||
if (sa == NULL) {
|
if (sa == NULL) {
|
||||||
salen = sizeof(myaddr);
|
salen = sizeof(myaddr);
|
||||||
@@ -121,7 +121,7 @@ bindresvport_sa(sd, sa)
|
|||||||
sa->sa_len = salen;
|
sa->sa_len = salen;
|
||||||
|
|
||||||
if (port == 0) {
|
if (port == 0) {
|
||||||
int oldlen = sizeof(old);
|
socklen_t oldlen = sizeof(old);
|
||||||
|
|
||||||
error = getsockopt(sd, proto, portrange, &old, &oldlen);
|
error = getsockopt(sd, proto, portrange, &old, &oldlen);
|
||||||
if (error < 0)
|
if (error < 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user