aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2023-02-07 19:34:37 +0000
committerMark Johnston <markj@FreeBSD.org>2023-02-07 20:10:24 +0000
commit3bc099eb71200b843de94b8e84b30b152a38f2f4 (patch)
treef0c8990875f402f0fde0b949f3e7956374efc8d3
parent7bb441c866781ec14b3e79a4f3e95fd319ab7ff9 (diff)
downloadsrc-3bc099eb71200b843de94b8e84b30b152a38f2f4.tar.gz
src-3bc099eb71200b843de94b8e84b30b152a38f2f4.zip
bridge: Make the ioctl table local to if_bridge.c
No functional change intended. MFC after: 1 week Sponsored by: Klara, Inc.
-rw-r--r--sys/net/if_bridge.c4
1 files 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)