Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Sprinkle const
details: https://anonhg.NetBSD.org/src/rev/85b0319afd22
branches: trunk
changeset: 368702:85b0319afd22
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Jul 29 07:58:18 2022 +0000
description:
Sprinkle const
diffstat:
sys/net/if_bridge.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (50 lines):
diff -r 4feab201897c -r 85b0319afd22 sys/net/if_bridge.c
--- a/sys/net/if_bridge.c Fri Jul 29 07:46:19 2022 +0000
+++ b/sys/net/if_bridge.c Fri Jul 29 07:58:18 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bridge.c,v 1.188 2022/07/29 07:46:19 skrll Exp $ */
+/* $NetBSD: if_bridge.c,v 1.189 2022/07/29 07:58:18 skrll Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.188 2022/07/29 07:46:19 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.189 2022/07/29 07:58:18 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -526,7 +526,7 @@
} args;
struct ifdrv *ifd = (struct ifdrv *) data;
const struct bridge_control *bc = NULL; /* XXXGCC */
- int s, error = 0;
+ int error = 0;
/* Authorize command before calling splsoftnet(). */
switch (cmd) {
@@ -554,7 +554,7 @@
break;
}
- s = splsoftnet();
+ const int s = splsoftnet();
switch (cmd) {
case SIOCGDRVSPEC:
@@ -1731,11 +1731,11 @@
m_set_rcvif(mc, dst_if);
mc->m_flags &= ~M_PROMISC;
- s = splsoftnet();
+ const int _s = splsoftnet();
KERNEL_LOCK_UNLESS_IFP_MPSAFE(dst_if);
ether_input(dst_if, mc);
KERNEL_UNLOCK_UNLESS_IFP_MPSAFE(dst_if);
- splx(s);
+ splx(_s);
}
next:
Home |
Main Index |
Thread Index |
Old Index