summaryrefslogtreecommitdiff
path: root/lib/libpcap/nametoaddr.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2005-03-28 06:19:59 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2005-03-28 06:19:59 +0000
commite02e2a5affe16b2a9afa9cd66860fb00a0516a2b (patch)
treef58c685ed86a44358bba7ff7d9e10cbc79a40875 /lib/libpcap/nametoaddr.c
parentb8fec28ebbcb3d0f35f713c3b190f3f24b7e137f (diff)
add some const to ether_*. remove bonus prototypes this brought out.
ok deraadt@
Diffstat (limited to 'lib/libpcap/nametoaddr.c')
-rw-r--r--lib/libpcap/nametoaddr.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libpcap/nametoaddr.c b/lib/libpcap/nametoaddr.c
index acf00ab1334..8c34a8b96c5 100644
--- a/lib/libpcap/nametoaddr.c
+++ b/lib/libpcap/nametoaddr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nametoaddr.c,v 1.10 2004/01/27 06:58:03 tedu Exp $ */
+/* $OpenBSD: nametoaddr.c,v 1.11 2005/03/28 06:19:58 tedu Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996
@@ -349,10 +349,6 @@ pcap_ether_hostton(const char *name)
}
#else
-#if !defined(sgi) && !defined(__NetBSD__)
-extern int ether_hostton(char *, struct ether_addr *);
-#endif
-
/* Use the os supplied routines */
u_char *
pcap_ether_hostton(const char *name)
@@ -361,7 +357,7 @@ pcap_ether_hostton(const char *name)
u_char a[6];
ap = NULL;
- if (ether_hostton((char *)name, (struct ether_addr *)a) == 0) {
+ if (ether_hostton(name, (struct ether_addr *)a) == 0) {
ap = (u_char *)malloc(6);
if (ap != NULL)
memcpy((char *)ap, (char *)a, 6);