diff options
Diffstat (limited to 'lib/libc/net/sctp_sys_calls.c')
-rw-r--r-- | lib/libc/net/sctp_sys_calls.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/net/sctp_sys_calls.c b/lib/libc/net/sctp_sys_calls.c index 6746c38..5c0f025 100644 --- a/lib/libc/net/sctp_sys_calls.c +++ b/lib/libc/net/sctp_sys_calls.c @@ -290,7 +290,7 @@ sctp_getpaddrs(int sd, sctp_assoc_t id, struct sockaddr **raddrs) struct sockaddr *re; sctp_assoc_t asoc; caddr_t lim; - size_t siz; + socklen_t siz; int cnt; if (raddrs == NULL) { @@ -300,7 +300,7 @@ sctp_getpaddrs(int sd, sctp_assoc_t id, struct sockaddr **raddrs) asoc = id; siz = sizeof(sctp_assoc_t); if (getsockopt(sd, IPPROTO_SCTP, SCTP_GET_REMOTE_ADDR_SIZE, - &asoc, (socklen_t *) & siz) != 0) { + &asoc, &siz) != 0) { errno = ENOMEM; return (-1); } @@ -316,7 +316,7 @@ sctp_getpaddrs(int sd, sctp_assoc_t id, struct sockaddr **raddrs) addrs->sget_assoc_id = id; /* Now lets get the array of addresses */ if (getsockopt(sd, IPPROTO_SCTP, SCTP_GET_PEER_ADDRESSES, - addrs, (socklen_t *) & siz) != 0) { + addrs, &siz) != 0) { free(addrs); errno = ENOMEM; return (-1); @@ -352,7 +352,7 @@ sctp_getladdrs(int sd, sctp_assoc_t id, struct sockaddr **raddrs) caddr_t lim; struct sockaddr *sa; int size_of_addresses; - size_t siz; + socklen_t siz; int cnt; if (raddrs == NULL) { @@ -362,7 +362,7 @@ sctp_getladdrs(int sd, sctp_assoc_t id, struct sockaddr **raddrs) size_of_addresses = 0; siz = sizeof(int); if (getsockopt(sd, IPPROTO_SCTP, SCTP_GET_LOCAL_ADDR_SIZE, - &size_of_addresses, (socklen_t *) & siz) != 0) { + &size_of_addresses, &siz) != 0) { errno = ENOMEM; return (-1); } @@ -381,7 +381,7 @@ sctp_getladdrs(int sd, sctp_assoc_t id, struct sockaddr **raddrs) addrs->sget_assoc_id = id; /* Now lets get the array of addresses */ if (getsockopt(sd, IPPROTO_SCTP, SCTP_GET_LOCAL_ADDRESSES, addrs, - (socklen_t *) & siz) != 0) { + &siz) != 0) { free(addrs); errno = ENOMEM; return (-1); |