summaryrefslogtreecommitdiff
path: root/sys/net/if_strip.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-10 07:28:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-10 07:28:28 +0000
commit927c0d695a8e369cadc6957ff16133acb852f5b8 (patch)
treeb34d8c34e7ddb9d5dbae7b5f76c7829880351f54 /sys/net/if_strip.c
parent95a593a6173b85d3b2699a98cada470362e7b0ed (diff)
init sc_unit properly
Diffstat (limited to 'sys/net/if_strip.c')
-rw-r--r--sys/net/if_strip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_strip.c b/sys/net/if_strip.c
index 7256fdcc4ef..d7abbb11124 100644
--- a/sys/net/if_strip.c
+++ b/sys/net/if_strip.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_strip.c,v 1.2 1996/05/19 22:09:36 jonathan Exp $ */
+/* $NetBSD: if_strip.c,v 1.2.4.1 1996/06/05 23:23:02 thorpej Exp $ */
/* from: NetBSD: if_sl.c,v 1.38 1996/02/13 22:00:23 christos Exp $ */
/*
@@ -314,9 +314,9 @@ stripattach(n)
register int i = 0;
for (sc = st_softc; i < NSTRIP; sc++) {
+ sc->sc_unit = i; /* XXX */
sprintf(sc->sc_if.if_xname, "st%d", i++);
sc->sc_if.if_softc = sc;
- sc->sc_unit = i; /* XXX */
sc->sc_if.if_mtu = SLMTU;
sc->sc_if.if_flags = 0;
sc->sc_if.if_type = IFT_OTHER;