Source-Changes-HG archive

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

[src/trunk]: src/sys/net Constify ifp of if_is_deactivated



details:   https://anonhg.NetBSD.org/src/rev/4779a9b2a598
branches:  trunk
changeset: 819654:4779a9b2a598
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Dec 13 02:05:48 2016 +0000

description:
Constify ifp of if_is_deactivated

diffstat:

 sys/net/if.c |  6 +++---
 sys/net/if.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 6ffcc9524784 -r 4779a9b2a598 sys/net/if.c
--- a/sys/net/if.c      Tue Dec 13 00:35:11 2016 +0000
+++ b/sys/net/if.c      Tue Dec 13 02:05:48 2016 +0000
@@ -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 @@
 }
 
 bool
-if_is_deactivated(struct ifnet *ifp)
+if_is_deactivated(const struct ifnet *ifp)
 {
 
        return ifp->if_output == if_nulloutput;
diff -r 6ffcc9524784 -r 4779a9b2a598 sys/net/if.h
--- a/sys/net/if.h      Tue Dec 13 00:35:11 2016 +0000
+++ b/sys/net/if.h      Tue Dec 13 02:05:48 2016 +0000
@@ -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_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 *);



Home | Main Index | Thread Index | Old Index