repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
dist
/
ipf
/
lib
/
alist_free.c
blob
17a234a495f4efccbb3ce3eb77a54b25ac05dfb6
1
/* $NetBSD$ */
2
3
/*
4
* Copyright (C) 2006 by Darren Reed.
5
*
6
* See the IPFILTER.LICENCE file for details on licencing.
7
*
8
* Id: alist_free.c,v 1.1.2.1 2006/08/25 21:13:04 darrenr Exp
9
*/
10
#include
"ipf.h"
11
12
void
13
alist_free
(
hosts
)
14
alist_t
*
hosts
;
15
{
16
alist_t
*
a
, *
next
;
17
18
for
(
a
=
hosts
;
a
!=
NULL
;
a
=
next
) {
19
next
=
a
->
al_next
;
20
free
(
a
);
21
}
22
}