summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
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