summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-12-22 02:26:55 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-12-22 02:26:55 +0000
commitf5060714df0f00e45a9c7091f8f8706f7225b547 (patch)
treee007b2eaf7d8a2e1945f639b49bc43895f8dc057 /sys/arch/sparc/dev
parent0ea9167b77e90db329a6febb88b957a60ad830d5 (diff)
unifdef INET
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/be.c4
-rw-r--r--sys/arch/sparc/dev/hme.c4
-rw-r--r--sys/arch/sparc/dev/if_ie.c4
-rw-r--r--sys/arch/sparc/dev/if_le.c4
-rw-r--r--sys/arch/sparc/dev/qe.c4
5 files changed, 5 insertions, 15 deletions
diff --git a/sys/arch/sparc/dev/be.c b/sys/arch/sparc/dev/be.c
index 08ced64a326..d694d1d537c 100644
--- a/sys/arch/sparc/dev/be.c
+++ b/sys/arch/sparc/dev/be.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: be.c,v 1.47 2014/07/22 10:35:35 mpi Exp $ */
+/* $OpenBSD: be.c,v 1.48 2014/12/22 02:26:54 tedu Exp $ */
/*
* Copyright (c) 1998 Theo de Raadt and Jason L. Wright.
@@ -571,12 +571,10 @@ beioctl(ifp, cmd, data)
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
beinit(sc);
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif /* INET */
default:
beinit(sc);
break;
diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c
index 834118955f2..c54cc48d66f 100644
--- a/sys/arch/sparc/dev/hme.c
+++ b/sys/arch/sparc/dev/hme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hme.c,v 1.66 2014/07/22 10:35:35 mpi Exp $ */
+/* $OpenBSD: hme.c,v 1.67 2014/12/22 02:26:54 tedu Exp $ */
/*
* Copyright (c) 1998 Jason L. Wright (jason@thought.net)
@@ -406,10 +406,8 @@ hmeioctl(ifp, cmd, data)
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
hmeinit(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
diff --git a/sys/arch/sparc/dev/if_ie.c b/sys/arch/sparc/dev/if_ie.c
index 1dc5dad2d1f..27dce8a0519 100644
--- a/sys/arch/sparc/dev/if_ie.c
+++ b/sys/arch/sparc/dev/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.48 2014/11/16 12:30:58 deraadt Exp $ */
+/* $OpenBSD: if_ie.c,v 1.49 2014/12/22 02:26:54 tedu Exp $ */
/* $NetBSD: if_ie.c,v 1.33 1997/07/29 17:55:38 fair Exp $ */
/*-
@@ -1949,12 +1949,10 @@ ieioctl(ifp, cmd, data)
ifp->if_flags |= IFF_UP;
switch(ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
ieinit(sc);
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif
default:
ieinit(sc);
break;
diff --git a/sys/arch/sparc/dev/if_le.c b/sys/arch/sparc/dev/if_le.c
index a310c3cc52f..feaab59f2e2 100644
--- a/sys/arch/sparc/dev/if_le.c
+++ b/sys/arch/sparc/dev/if_le.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_le.c,v 1.35 2014/07/28 18:31:39 miod Exp $ */
+/* $OpenBSD: if_le.c,v 1.36 2014/12/22 02:26:54 tedu Exp $ */
/* $NetBSD: if_le.c,v 1.50 1997/09/09 20:54:48 pk Exp $ */
/*-
@@ -58,10 +58,8 @@
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/autoconf.h>
#include <machine/cpu.h>
diff --git a/sys/arch/sparc/dev/qe.c b/sys/arch/sparc/dev/qe.c
index 06c36cf6fa7..f80de7646d1 100644
--- a/sys/arch/sparc/dev/qe.c
+++ b/sys/arch/sparc/dev/qe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qe.c,v 1.36 2014/07/22 10:35:35 mpi Exp $ */
+/* $OpenBSD: qe.c,v 1.37 2014/12/22 02:26:54 tedu Exp $ */
/*
* Copyright (c) 1998, 2000 Jason L. Wright.
@@ -591,12 +591,10 @@ qeioctl(ifp, cmd, data)
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
qeinit(sc);
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif /* INET */
default:
qeinit(sc);
break;