summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/inet_addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/inet_addr.c')
-rw-r--r--lib/libc/net/inet_addr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/net/inet_addr.c b/lib/libc/net/inet_addr.c
index abfdaa5..312c39b 100644
--- a/lib/libc/net/inet_addr.c
+++ b/lib/libc/net/inet_addr.c
@@ -66,6 +66,7 @@ static char rcsid[] = "$FreeBSD$";
#include <ctype.h>
#include <errno.h>
#include <string.h>
+#include <stdlib.h>
/*
* ASCII internet address interpretation routine.
@@ -98,7 +99,7 @@ inet_aton(cp, addr)
u_long val;
char *c;
char *endptr;
- int base, gotend, n;
+ int gotend, n;
c = (char *)cp;
n = 0;
OpenPOWER on IntegriCloud