summaryrefslogtreecommitdiff
path: root/sys/net/if_sl.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_sl.c
parent95a593a6173b85d3b2699a98cada470362e7b0ed (diff)
init sc_unit properly
Diffstat (limited to 'sys/net/if_sl.c')
-rw-r--r--sys/net/if_sl.c6
1 files changed, 3 insertions, 3 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;