diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-29 03:33:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-29 03:33:38 +0000 |
commit | 2706ad4a33922de7985e9a17d454f127404868e1 (patch) | |
tree | 59e9ea9a0cad49b079d589859fb039fc37ef0e59 /usr.sbin/arp/arp.c | |
parent | bbbcbaca48dab4bf31ad4f6e12551f455a58e81d (diff) |
fix warnings
Diffstat (limited to 'usr.sbin/arp/arp.c')
-rw-r--r-- | usr.sbin/arp/arp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index 3633b087d03..bff4cccfa95 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -72,6 +72,7 @@ static char *rcsid = "$NetBSD: arp.c,v 1.12 1995/04/24 13:25:18 cgd Exp $"; #include <stdlib.h> #include <string.h> #include <paths.h> +#include <unistd.h> int delete __P((const char *, const char *)); void dump __P((u_long)); @@ -274,7 +275,6 @@ get(host) const char *host; { struct sockaddr_inarp *sin; - u_char *ea; sin = &sin_m; sin_m = blank_sin; /* struct copy */ @@ -299,8 +299,6 @@ delete(host, info) register struct sockaddr_inarp *sin; register struct rt_msghdr *rtm; struct sockaddr_dl *sdl; - u_char *ea; - char *eaddr; sin = &sin_m; rtm = &m_rtmsg.m_rtm; @@ -512,7 +510,6 @@ getinetaddr(host, inap) { extern char *__progname; /* Program name, from crt0. */ struct hostent *hp; - u_long addr; if (inet_aton(host, inap) == 1) return (0); |