git: 3bc099eb7120 - main - bridge: Make the ioctl table local to if_bridge.c
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Feb 2023 20:11:46 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=3bc099eb71200b843de94b8e84b30b152a38f2f4 commit 3bc099eb71200b843de94b8e84b30b152a38f2f4 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-02-07 19:34:37 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-02-07 20:10:24 +0000 bridge: Make the ioctl table local to if_bridge.c No functional change intended. MFC after: 1 week Sponsored by: Klara, Inc. --- sys/net/if_bridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index 67d031a65052..5a4954e84869 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -478,7 +478,7 @@ struct bridge_control { #define BC_F_COPYOUT 0x02 /* copy arguments out */ #define BC_F_SUSER 0x04 /* do super-user check */ -const struct bridge_control bridge_control_table[] = { +static const struct bridge_control bridge_control_table[] = { { bridge_ioctl_add, sizeof(struct ifbreq), BC_F_COPYIN|BC_F_SUSER }, { bridge_ioctl_del, sizeof(struct ifbreq), @@ -563,7 +563,7 @@ const struct bridge_control bridge_control_table[] = { BC_F_COPYIN|BC_F_SUSER }, }; -const int bridge_control_table_size = nitems(bridge_control_table); +static const int bridge_control_table_size = nitems(bridge_control_table); VNET_DEFINE_STATIC(LIST_HEAD(, bridge_softc), bridge_list); #define V_bridge_list VNET(bridge_list)