diff options
author | phk <phk@FreeBSD.org> | 1997-11-07 08:53:44 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-11-07 08:53:44 +0000 |
commit | 4d268889365c1d9414bbca2f6c63d87db74ec37b (patch) | |
tree | 6993a0a1b7a3687b97ad7a5a073bb465e89eb411 /sys/net | |
parent | e4fdd132492fc7a4aaa448a72f13f3344f287ab1 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/net/hostcache.c | 3 | ||||
-rw-r--r-- | sys/net/if_ethersubr.c | 9 | ||||
-rw-r--r-- | sys/net/raw_usrreq.c | 4 |
3 files changed, 6 insertions, 10 deletions
diff --git a/sys/net/hostcache.c b/sys/net/hostcache.c index 78f4408..1c9cee8 100644 --- a/sys/net/hostcache.c +++ b/sys/net/hostcache.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: hostcache.c,v 1.1 1997/06/18 01:24:21 wollman Exp $ + * $Id: hostcache.c,v 1.2 1997/10/12 20:25:06 phk Exp $ */ #include <sys/param.h> @@ -182,7 +182,6 @@ int hc_delete(struct hcentry *hc) { struct hctable *hct; - u_long hash; int error, s; if (hc->hc_refcnt > 0) 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; diff --git a/sys/net/raw_usrreq.c b/sys/net/raw_usrreq.c index 8d2d001..348bb85 100644 --- a/sys/net/raw_usrreq.c +++ b/sys/net/raw_usrreq.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)raw_usrreq.c 8.1 (Berkeley) 6/10/93 - * $Id: raw_usrreq.c,v 1.14 1997/08/16 19:15:27 wollman Exp $ + * $Id: raw_usrreq.c,v 1.15 1997/09/14 03:10:38 peter Exp $ */ #include <sys/param.h> @@ -211,7 +211,6 @@ static int raw_upeeraddr(struct socket *so, struct sockaddr **nam) { struct rawcb *rp = sotorawcb(so); - unsigned len; if (rp == 0) return EINVAL; @@ -283,7 +282,6 @@ static int raw_usockaddr(struct socket *so, struct sockaddr **nam) { struct rawcb *rp = sotorawcb(so); - unsigned len; if (rp == 0) return EINVAL; |