(inet_aton): Define variable base only if needed.
authordrepper <drepper>
Wed, 1 Jul 1998 09:15:10 +0000 (09:15 +0000)
committerdrepper <drepper>
Wed, 1 Jul 1998 09:15:10 +0000 (09:15 +0000)
resolv/inet_addr.c

index 68659e9..0d3ba06 100644 (file)
@@ -100,7 +100,10 @@ inet_aton(cp, addr)
        struct in_addr *addr;
 {
        register u_int32_t val; /* changed from u_long --david */
-       register int base, n;
+#ifndef _LIBC
+       register int base;
+#endif
+       register int n;
        register char c;
        u_int32_t parts[4];
        register u_int32_t *pp = parts;