Constify ifp of if_is_deactivated
This commit is contained in:
parent
22bec9c1a0
commit
81f2534aaa
|
@ -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;
|
||||
|
|
|
@ -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 *);
|
||||
|
|
Loading…
Reference in New Issue