MALLOC->malloc

Suggested-by: bde
This commit is contained in:
Andrey A. Chernov 1997-12-19 19:39:01 +00:00
parent b3a66dd356
commit f3a4092ca2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31861

View file

@ -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))