diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-15 12:50:37 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-15 12:50:37 +0000 |
commit | b861a707522e8625b4a5b4145b97a8825037572f (patch) | |
tree | 99c8e48bc690579af3177a6fb4f375f464dfa0bc /src/conntrack.c | |
parent | 41f3e135db165fff931a07ef79e7731037d22941 (diff) | |
download | conntrack-tools-b861a707522e8625b4a5b4145b97a8825037572f.tar.gz conntrack-tools-b861a707522e8625b4a5b4145b97a8825037572f.zip |
Max Kellermann <max@duempel.org>
Use list_for_each_entry() instead of list_for_each()
Diffstat (limited to 'src/conntrack.c')
-rw-r--r-- | src/conntrack.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/conntrack.c b/src/conntrack.c index 20d86f9..4f5fd0b 100644 --- a/src/conntrack.c +++ b/src/conntrack.c @@ -161,14 +161,12 @@ void register_proto(struct ctproto_handler *h) static struct ctproto_handler *findproto(char *name) { - struct list_head *i; struct ctproto_handler *cur = NULL, *handler = NULL; if (!name) return handler; - list_for_each(i, &proto_list) { - cur = (struct ctproto_handler *) i; + list_for_each_entry(cur, &proto_list, head) { if (strcmp(cur->name, name) == 0) { handler = cur; break; |