From 17c3451c18389990d74936e79ee19a4aa15e97d0 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Tue, 15 Jan 2008 12:53:58 +0000 Subject: Max Kellermann : use const when possible --- include/buffer.h | 2 +- include/cache.h | 2 +- include/hash.h | 2 +- include/queue.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/buffer.h b/include/buffer.h index 5b854f3..aa753b4 100644 --- a/include/buffer.h +++ b/include/buffer.h @@ -13,6 +13,6 @@ void buffer_flush(struct buffer *b, void (*cb)(void *buffer_data, void *data), void *data); -unsigned int buffer_size(struct buffer *b); +unsigned int buffer_size(const struct buffer *b); #endif diff --git a/include/cache.h b/include/cache.h index f5e9576..5ca6ce4 100644 --- a/include/cache.h +++ b/include/cache.h @@ -83,7 +83,7 @@ struct us_conntrack *cache_update(struct cache *c, struct nf_conntrack *ct); struct us_conntrack *cache_update_force(struct cache *c, struct nf_conntrack *ct); int cache_del(struct cache *c, struct nf_conntrack *ct); int cache_test(struct cache *c, struct nf_conntrack *ct); -void cache_stats(struct cache *c, int fd); +void cache_stats(const struct cache *c, int fd); struct us_conntrack *cache_get_conntrack(struct cache *, void *); void *cache_get_extra(struct cache *, void *); void cache_iterate(struct cache *c, void *data, int (*iterate)(void *data1, void *data2)); diff --git a/include/hash.h b/include/hash.h index fd971e7..c9460fa 100644 --- a/include/hash.h +++ b/include/hash.h @@ -42,6 +42,6 @@ int hashtable_del(struct hashtable *table, void *data); int hashtable_flush(struct hashtable *table); int hashtable_iterate(struct hashtable *table, void *data, int (*iterate)(void *data1, void *data2)); -unsigned int hashtable_counter(struct hashtable *table); +unsigned int hashtable_counter(const struct hashtable *table); #endif diff --git a/include/queue.h b/include/queue.h index 691138f..f568da4 100644 --- a/include/queue.h +++ b/include/queue.h @@ -21,7 +21,7 @@ struct queue_node { struct queue *queue_create(size_t max_size); void queue_destroy(struct queue *b); -unsigned int queue_len(struct queue *b); +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, -- cgit v1.2.3