Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netatalk Remove aarp_clean, unused. By the way this func...



details:   https://anonhg.NetBSD.org/src/rev/905bd330eb34
branches:  trunk
changeset: 319437:905bd330eb34
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue May 29 16:29:47 2018 +0000

description:
Remove aarp_clean, unused. By the way this function was probably buggy
since it didn't reset aat_hold to NULL.

diffstat:

 sys/netatalk/aarp.c      |  16 ++--------------
 sys/netatalk/at_extern.h |   3 +--
 2 files changed, 3 insertions(+), 16 deletions(-)

diffs (51 lines):

diff -r 07264cbf9e84 -r 905bd330eb34 sys/netatalk/aarp.c
--- a/sys/netatalk/aarp.c       Tue May 29 16:24:34 2018 +0000
+++ b/sys/netatalk/aarp.c       Tue May 29 16:29:47 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aarp.c,v 1.41 2018/02/17 19:10:18 rjs Exp $    */
+/*     $NetBSD: aarp.c,v 1.42 2018/05/29 16:29:47 maxv Exp $   */
 
 /*
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.41 2018/02/17 19:10:18 rjs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.42 2018/05/29 16:29:47 maxv Exp $");
 
 #include "opt_mbuftrace.h"
 #include "opt_atalk.h"
@@ -673,15 +673,3 @@
        aa->aa_probcnt--;
        mutex_exit(softnet_lock);
 }
-
-void
-aarp_clean(void)
-{
-       struct aarptab *aat;
-       int             i;
-
-       callout_stop(&aarptimer_callout);
-       for (i = 0, aat = aarptab; i < AARPTAB_SIZE; i++, aat++)
-               if (aat->aat_hold)
-                       m_freem(aat->aat_hold);
-}
diff -r 07264cbf9e84 -r 905bd330eb34 sys/netatalk/at_extern.h
--- a/sys/netatalk/at_extern.h  Tue May 29 16:24:34 2018 +0000
+++ b/sys/netatalk/at_extern.h  Tue May 29 16:29:47 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: at_extern.h,v 1.19 2016/01/20 21:59:19 riastradh Exp $ */
+/*     $NetBSD: at_extern.h,v 1.20 2018/05/29 16:29:47 maxv Exp $      */
 
 /*
  * Copyright (c) 1990,1994 Regents of The University of Michigan.
@@ -50,7 +50,6 @@
     u_char *);
 void   aarpinput(struct ifnet *, struct mbuf *);
 int    at_broadcast(const struct sockaddr_at *);
-void   aarp_clean(void);
 int    at_control(u_long, void *, struct ifnet *);
 int    at_inithead(void **, int);
 void   at_purgeaddr(struct ifaddr *);



Home | Main Index | Thread Index | Old Index