diff options
author | ache <ache@FreeBSD.org> | 1997-07-27 19:28:26 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-07-27 19:28:26 +0000 |
commit | 8e569fe3bd9a2e8c3fbaa3a55b4cacd6f1022ff2 (patch) | |
tree | b9a8f185d6ed9c7f62aeb41580bcb3f20aa8b2e5 /sys/net | |
parent | 8efe1426a0f175e3290b32c5da2a3e5118696132 (diff) | |
download | FreeBSD-src-8e569fe3bd9a2e8c3fbaa3a55b4cacd6f1022ff2.zip FreeBSD-src-8e569fe3bd9a2e8c3fbaa3a55b4cacd6f1022ff2.tar.gz |
Move tmpnc struct out of stack, too large
Suggested by: bde
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_sl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index 6361196..e787f6e 100644 --- a/sys/net/if_sl.c +++ b/sys/net/if_sl.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_sl.c 8.6 (Berkeley) 2/1/94 - * $Id: if_sl.c,v 1.54 1997/07/26 19:09:12 ache Exp $ + * $Id: if_sl.c,v 1.55 1997/07/26 20:13:56 ache Exp $ */ /* @@ -377,7 +377,8 @@ sltioctl(tp, cmd, data, flag, p) case SLIOCSUNIT: if (sc->sc_if.if_unit != *(u_int *)data) { - struct sl_softc *nc, tmpnc; + struct sl_softc *nc; + static struct sl_softc tmpnc; /* too large for stack */ for (nsl = NSL, nc = sl_softc; --nsl >= 0; nc++) { if ( nc->sc_if.if_unit == *(u_int *)data |