summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-11-07 08:53:44 +0000
committerphk <phk@FreeBSD.org>1997-11-07 08:53:44 +0000
commit4d268889365c1d9414bbca2f6c63d87db74ec37b (patch)
tree6993a0a1b7a3687b97ad7a5a073bb465e89eb411 /sys/net/if_ethersubr.c
parente4fdd132492fc7a4aaa448a72f13f3344f287ab1 (diff)
downloadFreeBSD-src-4d268889365c1d9414bbca2f6c63d87db74ec37b.zip
FreeBSD-src-4d268889365c1d9414bbca2f6c63d87db74ec37b.tar.gz
Remove a bunch of variables which were unused both in GENERIC and LINT.
Found by: -Wunused
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 190fd47..7d90fab 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if_ethersubr.c 8.1 (Berkeley) 6/10/93
- * $Id: if_ethersubr.c,v 1.37 1997/10/28 15:58:31 bde Exp $
+ * $Id: if_ethersubr.c,v 1.38 1997/10/29 00:30:43 julian Exp $
*/
#include <sys/param.h>
@@ -118,14 +118,13 @@ ether_output(ifp, m0, dst, rt0)
{
short type;
int s, error = 0;
- u_char *cp, edst[6];
- register struct mbuf *m2, *m = m0;
+ u_char edst[6];
+ register struct mbuf *m = m0;
register struct rtentry *rt;
struct mbuf *mcopy = (struct mbuf *)0;
register struct ether_header *eh;
int off, len = m->m_pkthdr.len;
struct arpcom *ac = (struct arpcom *)ifp;
- register struct ifqueue *inq;
#ifdef NETATALK
struct at_ifaddr *aa;
#endif NETATALK
@@ -459,7 +458,7 @@ ether_input(ifp, eh, m)
struct mbuf *m;
{
register struct ifqueue *inq;
- u_short ether_type, *checksum;
+ u_short ether_type;
int s;
#if defined (ISO) || defined (LLC) || defined(NETATALK)
register struct llc *l;
OpenPOWER on IntegriCloud