plan9port/src/libip/freeipifc.c

20 lines
231 B
C
Raw Normal View History

2005-12-31 19:33:03 +00:00
#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);
}
}