2002-09-24 Roland McGrath <roland@redhat.com>
authorroland <roland>
Wed, 25 Sep 2002 01:57:56 +0000 (01:57 +0000)
committerroland <roland>
Wed, 25 Sep 2002 01:57:56 +0000 (01:57 +0000)
* resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.

resolv/gethnamaddr.c

index 8236b14..1ab102b 100644 (file)
@@ -633,7 +633,8 @@ gethostbyaddr(addr, len, af)
        const u_char *uaddr = (const u_char *)addr;
        static const u_char mapped[] = { 0,0, 0,0, 0,0, 0,0, 0,0, 0xff,0xff };
        static const u_char tunnelled[] = { 0,0, 0,0, 0,0, 0,0, 0,0, 0,0 };
-       int n, size;
+       int n;
+       socklen_t size;
        querybuf buf;
        register struct hostent *hp;
        char qbuf[MAXDNAME+1], *qp = NULL;