diff options
-rw-r--r-- | sys/net/if_sl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index bb63ebd..a293970 100644 --- a/sys/net/if_sl.c +++ b/sys/net/if_sl.c @@ -379,8 +379,8 @@ sltioctl(tp, cmd, data, flag, p) if ( nc->sc_if.if_unit == *(u_int *)data && nc->sc_ttyp == NULL ) { - MALLOC(tmpnc, sizeof *tmpnc, M_TEMP, - M_NOWAIT); + tmpnc = malloc(sizeof *tmpnc, M_TEMP, + M_NOWAIT); if (tmpnc == NULL) { splx(s); return (ENOMEM); @@ -390,7 +390,7 @@ sltioctl(tp, cmd, data, flag, p) nc->sc_if = tmpnc->sc_if; tmpnc->sc_if = sc->sc_if; *sc = *tmpnc; - FREE(tmpnc, M_TEMP); + free(tmpnc, M_TEMP); if (sc->sc_if.if_flags & IFF_UP) { if_down(&sc->sc_if); if (!(nc->sc_if.if_flags & IFF_UP)) |