Sign in
plan9port
/
plan9
/
8a2a5b8f2568a665f00741994c1247f0f7d3dffe
/
.
/
src
/
libip
/
freeipifc.c
blob: 7899facc041988bc5a0bb5e2eb4a3d1d604948b1 [
file
] [
log
] [
blame
]
#include
<u.h>
#include
<libc.h>
#include
<ip.h>
void
freeipifc
(
Ipifc
*
i
)
{
Ipifc
*
next
;
Iplifc
*
l
,
*
lnext
;
for
(;
i
;
i
=
next
){
next
=
i
->
next
;
for
(
l
=
i
->
lifc
;
l
;
l
=
lnext
){
lnext
=
l
->
next
;
free
(
l
);
}
free
(
i
);
}
}