summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-07-01 09:15:10 +0000
committerUlrich Drepper <drepper@redhat.com>1998-07-01 09:15:10 +0000
commitd62991517862a3e234848beeade19176423bde80 (patch)
tree106a62cb0dbac29b401729803edbae98a9ef5175
parent0301a08c93709cb9787404f01152d2af04e5c0df (diff)
downloadglibc-d62991517862a3e234848beeade19176423bde80.tar.gz
glibc-d62991517862a3e234848beeade19176423bde80.tar.xz
glibc-d62991517862a3e234848beeade19176423bde80.zip
(inet_aton): Define variable base only if needed.
-rw-r--r--resolv/inet_addr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/resolv/inet_addr.c b/resolv/inet_addr.c
index 68659e9a04..0d3ba068d5 100644
--- a/resolv/inet_addr.c
+++ b/resolv/inet_addr.c
@@ -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;