use sc_unit instead of pointer arthimetic.

This commit is contained in:
mrg 1996-08-09 08:34:00 +00:00
parent 79fb4c0c30
commit c01edc3a02
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_sl.c,v 1.41 1996/07/10 18:15:25 cgd Exp $ */
/* $NetBSD: if_sl.c,v 1.42 1996/08/09 08:34:00 mrg Exp $ */
/*
* Copyright (c) 1987, 1989, 1992, 1993
@ -230,7 +230,7 @@ slinit(sc)
if (p)
sc->sc_ep = (u_char *)p + SLBUFSIZE;
else {
printf("sl%ld: can't allocate buffer\n", sc - sl_softc);
printf("sl%d: can't allocate buffer\n", sc->sc_unit);
sc->sc_if.if_flags &= ~IFF_UP;
return (0);
}