diff options
author | ume <ume@FreeBSD.org> | 2005-05-02 04:43:32 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-05-02 04:43:32 +0000 |
commit | f7d29d45c87a6e997500bb06c93a04fa8cee3360 (patch) | |
tree | e893dbc86bcfc0bc0e02206b78fc2db215533a05 /lib/libc | |
parent | 431f1afe8c934f27b93fcad229dec8c37ac7ac88 (diff) | |
download | FreeBSD-src-f7d29d45c87a6e997500bb06c93a04fa8cee3360.zip FreeBSD-src-f7d29d45c87a6e997500bb06c93a04fa8cee3360.tar.gz |
the 3rd argument of getsockname() should be socklen_t*.
Submitted by: stefanf
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/getaddrinfo.c | 3 | ||||
-rw-r--r-- | lib/libc/net/name6.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c index 0265dd6..932048f 100644 --- a/lib/libc/net/getaddrinfo.c +++ b/lib/libc/net/getaddrinfo.c @@ -781,7 +781,8 @@ set_source(aio, ph) { struct addrinfo ai = *aio->aio_ai; struct sockaddr_storage ss; - int s, srclen; + socklen_t srclen; + int s; /* set unspec ("no source is available"), just in case */ aio->aio_srcsa.sa_family = AF_UNSPEC; diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c index c7978f1..6dfb663 100644 --- a/lib/libc/net/name6.c +++ b/lib/libc/net/name6.c @@ -954,7 +954,8 @@ set_source(aio, ph) struct policyhead *ph; { struct sockaddr_storage ss = aio->aio_un.aiou_ss; - int s, srclen; + socklen_t srclen; + int s; /* set unspec ("no source is available"), just in case */ aio->aio_srcsa.sa_family = AF_UNSPEC; |