]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - contrib/ipfilter/lib/alist_free.c
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / contrib / ipfilter / lib / alist_free.c
1 /*
2  * Copyright (C) 2006 by Darren Reed.
3  *
4  * See the IPFILTER.LICENCE file for details on licencing.
5  *
6  * $Id: alist_free.c,v 1.1.2.1 2006/08/25 21:13:04 darrenr Exp $
7  */
8 #include "ipf.h"
9
10 void
11 alist_free(hosts)
12 alist_t *hosts;
13 {
14         alist_t *a, *next;
15
16         for (a = hosts; a != NULL; a = next) {
17                 next = a->al_next;
18                 free(a);
19         }
20 }