summaryrefslogtreecommitdiff
path: root/src/hash.c
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-17 16:56:50 +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-17 16:56:50 +0000
commita8f06005be7e61f0562d8c36d953f688922edf01 (patch)
treea31a44f5788cc5f8677ad696216b8d9416bc53e6 /src/hash.c
parentf248d75e65247a39c29052bc3b4fbcc043a4967c (diff)
downloadconntrack-tools-a8f06005be7e61f0562d8c36d953f688922edf01.tar.gz
conntrack-tools-a8f06005be7e61f0562d8c36d953f688922edf01.zip
Max Kellermann <max@duempel.org>:
use C99 integers (uint32_t instead of u_int32_t)
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/hash.c b/src/hash.c
index 553dd1d..d7724c8 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -48,7 +48,7 @@ void hashtable_destroy_node(struct hashtable_node *h)
struct hashtable *
hashtable_create(int hashsize, int limit, int datasize,
- u_int32_t (*hash)(const void *data, struct hashtable *table),
+ uint32_t (*hash)(const void *data, struct hashtable *table),
int (*compare)(const void *data1, const void *data2))
{
int i;
@@ -85,7 +85,7 @@ void *hashtable_add(struct hashtable *table, void *data)
{
struct slist_head *e;
struct hashtable_node *n;
- u_int32_t id;
+ uint32_t id;
/* hash table is full */
if (table->count >= table->limit) {
@@ -118,7 +118,7 @@ void *hashtable_add(struct hashtable *table, void *data)
void *hashtable_test(struct hashtable *table, const void *data)
{
struct slist_head *e;
- u_int32_t id;
+ uint32_t id;
struct hashtable_node *n;
id = table->hash(data, table);
@@ -136,7 +136,7 @@ void *hashtable_test(struct hashtable *table, const void *data)
int hashtable_del(struct hashtable *table, void *data)
{
struct slist_head *e, *next, *prev;
- u_int32_t id;
+ uint32_t id;
struct hashtable_node *n;
id = table->hash(data, table);
@@ -156,7 +156,7 @@ int hashtable_del(struct hashtable *table, void *data)
int hashtable_flush(struct hashtable *table)
{
- u_int32_t i;
+ uint32_t i;
struct slist_head *e, *next, *prev;
struct hashtable_node *n;
@@ -175,7 +175,7 @@ int hashtable_flush(struct hashtable *table)
int hashtable_iterate(struct hashtable *table, void *data,
int (*iterate)(void *data1, void *data2))
{
- u_int32_t i;
+ uint32_t i;
struct slist_head *e, *next, *prev;
struct hashtable_node *n;