summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-10-09 00:17:55 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-10-09 00:17:55 +0000
commita670ea3f84e8d5f99e6cf66da2af00dd89852b93 (patch)
treef38ce99252c9ca56d55197e456fdfbe2de2de802
parenteae44c3f5a05b16f136500e36bdc7a630f781de2 (diff)
cosmetic change for ioctl funtions.. move splnet out from variable declaration.
-rw-r--r--sys/arch/vax/if/if_de.c7
-rw-r--r--sys/arch/vax/if/sgec.c6
2 files changed, 8 insertions, 5 deletions
diff --git a/sys/arch/vax/if/if_de.c b/sys/arch/vax/if/if_de.c
index 57ec258e7f2..df1cbec483c 100644
--- a/sys/arch/vax/if/if_de.c
+++ b/sys/arch/vax/if/if_de.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_de.c,v 1.20 2008/08/14 11:41:30 martin Exp $ */
+/* $OpenBSD: if_de.c,v 1.21 2008/10/09 00:17:54 brad Exp $ */
/* $NetBSD: if_de.c,v 1.27 1997/04/19 15:02:29 ragge Exp $ */
/*
@@ -575,10 +575,11 @@ deioctl(ifp, cmd, data)
{
register struct ifaddr *ifa = (struct ifaddr *)data;
register struct de_softc *ds = ifp->if_softc;
- int s = splnet(), error = 0;
+ int s, error = 0;
- switch (cmd) {
+ s = splnet();
+ switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
deinit(ds);
diff --git a/sys/arch/vax/if/sgec.c b/sys/arch/vax/if/sgec.c
index f87af9772e8..2f827913e64 100644
--- a/sys/arch/vax/if/sgec.c
+++ b/sys/arch/vax/if/sgec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sgec.c,v 1.17 2008/10/02 20:21:13 brad Exp $ */
+/* $OpenBSD: sgec.c,v 1.18 2008/10/09 00:17:54 brad Exp $ */
/* $NetBSD: sgec.c,v 1.5 2000/06/04 02:14:14 matt Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
@@ -627,7 +627,9 @@ zeioctl(ifp, cmd, data)
struct ze_softc *sc = ifp->if_softc;
struct ifreq *ifr = (struct ifreq *)data;
struct ifaddr *ifa = (struct ifaddr *)data;
- int s = splnet(), error = 0;
+ int s, error = 0;
+
+ s = splnet();
switch (cmd) {
case SIOCSIFADDR: