summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2005-05-02 04:43:32 +0000
committerume <ume@FreeBSD.org>2005-05-02 04:43:32 +0000
commitf7d29d45c87a6e997500bb06c93a04fa8cee3360 (patch)
treee893dbc86bcfc0bc0e02206b78fc2db215533a05 /lib/libc
parent431f1afe8c934f27b93fcad229dec8c37ac7ac88 (diff)
downloadFreeBSD-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.c3
-rw-r--r--lib/libc/net/name6.c3
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;
OpenPOWER on IntegriCloud