NetBSD/dist/ipf/lib/alist_free.c

23 lines
401 B
C

/* $NetBSD: alist_free.c,v 1.1.1.1 2007/04/14 20:17:31 martin Exp $ */
/*
* Copyright (C) 2006 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* Id: alist_free.c,v 1.1.2.1 2006/08/25 21:13:04 darrenr Exp
*/
#include "ipf.h"
void
alist_free(hosts)
alist_t *hosts;
{
alist_t *a, *next;
for (a = hosts; a != NULL; a = next) {
next = a->al_next;
free(a);
}
}