Module Name:    src
Committed By:   ozaki-r
Date:           Wed Apr 27 07:51:14 UTC 2016

Modified Files:
        src/sys/netinet6: in6_ifattach.c

Log Message:
Get rid of unused argument from get_rand_ifid


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sys/netinet6/in6_ifattach.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet6/in6_ifattach.c
diff -u src/sys/netinet6/in6_ifattach.c:1.96 src/sys/netinet6/in6_ifattach.c:1.97
--- src/sys/netinet6/in6_ifattach.c:1.96	Fri Apr  1 08:12:00 2016
+++ src/sys/netinet6/in6_ifattach.c	Wed Apr 27 07:51:14 2016
@@ -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 @@ callout_t in6_tmpaddrtimer_ch;
 #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 @@ get_hostid_ifid(struct ifnet *ifp, struc
  * 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 @@ get_ifid(struct ifnet *ifp0, struct ifne
 #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));

Reply via email to