1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Fixes build breakage.. invalid type casts.. and invalid

type for size in one place.
This commit is contained in:
Randall Stewart 2007-02-22 14:48:12 +00:00
parent d8b5fd91b9
commit 2cbcccc774
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166887

View File

@ -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);