diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-10 07:28:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-10 07:28:28 +0000 |
commit | 927c0d695a8e369cadc6957ff16133acb852f5b8 (patch) | |
tree | b34d8c34e7ddb9d5dbae7b5f76c7829880351f54 /sys/net | |
parent | 95a593a6173b85d3b2699a98cada470362e7b0ed (diff) |
init sc_unit properly
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_sl.c | 6 | ||||
-rw-r--r-- | sys/net/if_strip.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index 99ff0783254..2867993bbdc 100644 --- a/sys/net/if_sl.c +++ b/sys/net/if_sl.c @@ -1,5 +1,5 @@ -/* $OpenBSD: if_sl.c,v 1.4 1996/05/10 12:31:11 deraadt Exp $ */ -/* $NetBSD: if_sl.c,v 1.39 1996/05/07 02:40:43 thorpej Exp $ */ +/* $OpenBSD: if_sl.c,v 1.5 1996/06/10 07:28:25 deraadt Exp $ */ +/* $NetBSD: if_sl.c,v 1.39.4.1 1996/06/02 16:26:31 thorpej Exp $ */ /* * Copyright (c) 1987, 1989, 1992, 1993 @@ -202,9 +202,9 @@ slattach() register int i = 0; for (sc = sl_softc; i < NSL; sc++) { + sc->sc_unit = i; /* XXX */ sprintf(sc->sc_if.if_xname, "sl%d", i++); sc->sc_if.if_softc = sc; - sc->sc_unit = i; /* XXX */ sc->sc_if.if_mtu = SLMTU; sc->sc_if.if_flags = IFF_POINTOPOINT | SC_AUTOCOMP | IFF_MULTICAST; 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; |