summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2010-05-23 10:12:43 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2010-05-23 10:12:43 +0000
commit8321362a5b0ef80b4c016b6b623a26b674e4ab40 (patch)
tree6dd7ecfa8f5ecda5f113d6c63cb64a3f6845486e /usr.bin/netstat
parentd3c03138a559d041c3f005f1d620814a05951923 (diff)
remove unused function
from tobias@ (loooooong time ago) ok henning@ claudio@ tobias@
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/atalk.c42
-rw-r--r--usr.bin/netstat/netstat.h3
2 files changed, 2 insertions, 43 deletions
diff --git a/usr.bin/netstat/atalk.c b/usr.bin/netstat/atalk.c
index 674b2935f58..ec335732cc9 100644
--- a/usr.bin/netstat/atalk.c
+++ b/usr.bin/netstat/atalk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atalk.c,v 1.17 2009/02/07 15:06:04 chl Exp $ */
+/* $OpenBSD: atalk.c,v 1.18 2010/05/23 10:12:42 chl Exp $ */
/* $NetBSD: atalk.c,v 1.2 1997/05/22 17:21:26 christos Exp $ */
/*
@@ -195,46 +195,6 @@ atalk_print(const struct sockaddr *sa, int what)
return mybuf;
}
-char *
-atalk_print2(const struct sockaddr *sa, const struct sockaddr *mask, int what)
-{
- size_t n, l;
- static char buf[100];
- struct sockaddr_at *sat1, *sat2;
- struct sockaddr_at thesockaddr;
- struct sockaddr *sa2;
-
- sat1 = (struct sockaddr_at *) sa;
- sat2 = (struct sockaddr_at *) mask;
- sa2 = (struct sockaddr *) & thesockaddr;
-
- thesockaddr.sat_addr.s_net = sat1->sat_addr.s_net &
- sat2->sat_addr.s_net;
- if ((n = snprintf(buf, sizeof(buf), "%s",
- atalk_print(sa2, 1 | (what & 8)))) >= sizeof(buf))
- n = sizeof(buf) - 1;
- else if (n < 0)
- n = 0; /* What else can be done ? */
- if (sat2->sat_addr.s_net != 0xFFFF) {
- thesockaddr.sat_addr.s_net = sat1->sat_addr.s_net |
- ~sat2->sat_addr.s_net;
- if ((l = snprintf(buf + n, sizeof(buf) - n,
- "-%s", atalk_print(sa2, 1 | (what & 8)))) >= sizeof(buf) - n)
- l = sizeof(buf) - n - 1;
- if (l > 0)
- n += l;
- }
- if (what & 2) {
- l = snprintf(buf + n, sizeof(buf) - n, ".%s",
- atalk_print(sa, what & (~1)));
- if (l >= sizeof(buf) - n)
- l = sizeof(buf) - n - 1;
- if (l > 0)
- n += l;
- }
- return (buf);
-}
-
void
atalkprotopr(u_long off, char *name)
{
diff --git a/usr.bin/netstat/netstat.h b/usr.bin/netstat/netstat.h
index c100f01fd2f..9c8aa836291 100644
--- a/usr.bin/netstat/netstat.h
+++ b/usr.bin/netstat/netstat.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: netstat.h,v 1.54 2010/03/23 16:26:01 claudio Exp $ */
+/* $OpenBSD: netstat.h,v 1.55 2010/05/23 10:12:42 chl Exp $ */
/* $NetBSD: netstat.h,v 1.6 1996/05/07 02:55:05 thorpej Exp $ */
/*
@@ -142,4 +142,3 @@ void mrt_stats(void);
void atalkprotopr(u_long, char *);
void ddp_stats(char *);
char *atalk_print(const struct sockaddr *, int);
-char *atalk_print2(const struct sockaddr *, const struct sockaddr *, int);