summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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 13:21:44 +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 13:21:44 +0000
commitf908987c2ad037b85ec611901b257ec675786cba (patch)
treeca9641ae3d0ab2753587e9b46af187ab6d86aa4d
parenta944cf07400e78ac17f559dd41a670427648c258 (diff)
downloadconntrack-tools-f908987c2ad037b85ec611901b257ec675786cba.tar.gz
conntrack-tools-f908987c2ad037b85ec611901b257ec675786cba.zip
constify queue_iterate()
-rw-r--r--ChangeLog1
-rw-r--r--include/queue.h2
-rw-r--r--src/queue.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 557ef83..6f6f890 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -41,6 +41,7 @@ o fix logfiles permissions, do not default to umask
o wake up the daemon iff there are real events to handle instead of polling
o add support for tagged vlan interfaces in the config file, e.g. eth0.1
o improve alarm framework based on suggestions from Max Kellerman
+o constify queue_iterate()
Max Kellermann <max@duempel.org>:
diff --git a/include/queue.h b/include/queue.h
index f568da4..2e08e56 100644
--- a/include/queue.h
+++ b/include/queue.h
@@ -25,7 +25,7 @@ unsigned int queue_len(const struct queue *b);
int queue_add(struct queue *b, const void *data, size_t size);
void queue_del(struct queue *b, void *data);
void queue_iterate(struct queue *b,
- void *data,
+ const void *data,
int (*iterate)(void *data1, void *data2));
#endif
diff --git a/src/queue.c b/src/queue.c
index e73d692..1c31157 100644
--- a/src/queue.c
+++ b/src/queue.c
@@ -109,7 +109,7 @@ void queue_del(struct queue *b, void *data)
}
void queue_iterate(struct queue *b,
- void *data,
+ const void *data,
int (*iterate)(void *data1, void *data2))
{
struct list_head *i, *tmp;