diff options
author | phk <phk@FreeBSD.org> | 2004-06-07 20:43:37 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-07 20:43:37 +0000 |
commit | 635c1632db24421811a7cba130edd3d8f77b8255 (patch) | |
tree | 213b526c7931bda64e4b6d776ec995d6ad9bcfcb /sys/net | |
parent | 8ec3bc41022f39f02f1a8ebdcfbd5f922866eb99 (diff) | |
download | FreeBSD-src-635c1632db24421811a7cba130edd3d8f77b8255.zip FreeBSD-src-635c1632db24421811a7cba130edd3d8f77b8255.tar.gz |
Use ldisc_[de]register() instead of frobbing linesw[] directly.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_sl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index 2d986e0..0d39973 100644 --- a/sys/net/if_sl.c +++ b/sys/net/if_sl.c @@ -198,10 +198,11 @@ sl_modevent(module_t mod, int type, void *data) { switch (type) { case MOD_LOAD: - linesw[SLIPDISC] = slipdisc; + ldisc_register(SLIPDISC, &slipdisc); LIST_INIT(&sl_list); break; case MOD_UNLOAD: + ldisc_deregister(SLIPDISC); printf("if_sl module unload - not possible for this module type\n"); return EINVAL; } |