Module Name:    src
Committed By:   ozaki-r
Date:           Tue Dec 13 02:05:48 UTC 2016

Modified Files:
        src/sys/net: if.c if.h

Log Message:
Constify ifp of if_is_deactivated


To generate a diff of this commit:
cvs rdiff -u -r1.366 -r1.367 src/sys/net/if.c
cvs rdiff -u -r1.231 -r1.232 src/sys/net/if.h

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

Modified files:

Index: src/sys/net/if.c
diff -u src/sys/net/if.c:1.366 src/sys/net/if.c:1.367
--- src/sys/net/if.c:1.366	Mon Dec 12 03:55:57 2016
+++ src/sys/net/if.c	Tue Dec 13 02:05:48 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: if.c,v 1.366 2016/12/12 03:55:57 ozaki-r Exp $	*/
+/*	$NetBSD: if.c,v 1.367 2016/12/13 02:05:48 ozaki-r Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.366 2016/12/12 03:55:57 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.367 2016/12/13 02:05:48 ozaki-r Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -1151,7 +1151,7 @@ if_deactivate(struct ifnet *ifp)
 }
 
 bool
-if_is_deactivated(struct ifnet *ifp)
+if_is_deactivated(const struct ifnet *ifp)
 {
 
 	return ifp->if_output == if_nulloutput;

Index: src/sys/net/if.h
diff -u src/sys/net/if.h:1.231 src/sys/net/if.h:1.232
--- src/sys/net/if.h:1.231	Mon Dec 12 03:55:57 2016
+++ src/sys/net/if.h	Tue Dec 13 02:05:48 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: if.h,v 1.231 2016/12/12 03:55:57 ozaki-r Exp $	*/
+/*	$NetBSD: if.h,v 1.232 2016/12/13 02:05:48 ozaki-r Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -950,7 +950,7 @@ void	if_register(struct ifnet *);
 void	if_attach(struct ifnet *); /* Deprecated. Use if_initialize and if_register */
 void	if_attachdomain(void);
 void	if_deactivate(struct ifnet *);
-bool	if_is_deactivated(struct ifnet *);
+bool	if_is_deactivated(const struct ifnet *);
 void	if_purgeaddrs(struct ifnet *, int, void (*)(struct ifaddr *));
 void	if_detach(struct ifnet *);
 void	if_down(struct ifnet *);

Reply via email to