summaryrefslogtreecommitdiff
path: root/include/hash.h
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 /include/hash.h
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 'include/hash.h')
-rw-r--r--include/hash.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/include/hash.h b/include/hash.h
index c9460fa..caad412 100644
--- a/include/hash.h
+++ b/include/hash.h
@@ -2,21 +2,22 @@
#define _NF_SET_HASH_H_
#include <unistd.h>
-#include <sys/types.h>
#include "slist.h"
#include "linux_list.h"
+#include <stdint.h>
+
struct hashtable;
struct hashtable_node;
struct hashtable {
- u_int32_t hashsize;
- u_int32_t limit;
- u_int32_t count;
- u_int32_t initval;
- u_int32_t datasize;
+ uint32_t hashsize;
+ uint32_t limit;
+ uint32_t count;
+ uint32_t initval;
+ uint32_t 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);
struct slist_head members[0];
@@ -32,7 +33,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));
void hashtable_destroy(struct hashtable *h);