Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Get rid of unused argument from get_rand_ifid



details:   https://anonhg.NetBSD.org/src/rev/3371e2339024
branches:  trunk
changeset: 344905:3371e2339024
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Apr 27 07:51:14 2016 +0000

description:
Get rid of unused argument from get_rand_ifid

diffstat:

 sys/netinet6/in6_ifattach.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (46 lines):

diff -r bbe4b0f5047f -r 3371e2339024 sys/netinet6/in6_ifattach.c
--- a/sys/netinet6/in6_ifattach.c       Wed Apr 27 06:58:06 2016 +0000
+++ b/sys/netinet6/in6_ifattach.c       Wed Apr 27 07:51:14 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6_ifattach.c,v 1.96 2016/04/01 08:12:00 ozaki-r Exp $        */
+/*     $NetBSD: in6_ifattach.c,v 1.97 2016/04/27 07:51:14 ozaki-r Exp $        */
 /*     $KAME: in6_ifattach.c,v 1.124 2001/07/18 08:32:51 jinmei Exp $  */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6_ifattach.c,v 1.96 2016/04/01 08:12:00 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6_ifattach.c,v 1.97 2016/04/27 07:51:14 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -71,7 +71,7 @@
 #if 0
 static int get_hostid_ifid(struct ifnet *, struct in6_addr *);
 #endif
-static int get_rand_ifid(struct ifnet *, struct in6_addr *);
+static int get_rand_ifid(struct in6_addr *);
 static int generate_tmp_ifid(u_int8_t *, const u_int8_t *, u_int8_t *);
 static int get_ifid(struct ifnet *, struct ifnet *, struct in6_addr *);
 static int in6_ifattach_linklocal(struct ifnet *, struct ifnet *);
@@ -141,8 +141,7 @@
  * We currently use MD5(hostname) for it.
  */
 static int
-get_rand_ifid(struct ifnet *ifp,
-       struct in6_addr *in6)   /* upper 64bits are preserved */
+get_rand_ifid(struct in6_addr *in6)    /* upper 64bits are preserved */
 {
        MD5_CTX ctxt;
        u_int8_t digest[16];
@@ -500,7 +499,7 @@
 #endif
 
        /* last resort: get from random number source */
-       if (get_rand_ifid(ifp, in6) == 0) {
+       if (get_rand_ifid(in6) == 0) {
                nd6log(LOG_DEBUG,
                    "%s: interface identifier generated by random number\n",
                    if_name(ifp0));



Home | Main Index | Thread Index | Old Index