summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/buffer.h12
-rw-r--r--include/conntrackd.h2
2 files changed, 8 insertions, 6 deletions
diff --git a/include/buffer.h b/include/buffer.h
index 0d52e72..ab1ccd3 100644
--- a/include/buffer.h
+++ b/include/buffer.h
@@ -1,20 +1,22 @@
#ifndef _BUFFER_H_
#define _BUFFER_H_
+#include <stddef.h>
+
struct buffer {
unsigned char *data;
- unsigned int size;
- unsigned int cur_size;
+ size_t size;
+ size_t cur_size;
};
-struct buffer *buffer_create(unsigned int size);
+struct buffer *buffer_create(size_t size);
void buffer_destroy(struct buffer *b);
-int buffer_add(struct buffer *b, void *data, unsigned int size);
+int buffer_add(struct buffer *b, void *data, size_t size);
void buffer_flush(struct buffer *b,
void (*cb)(void *buffer_data,
void *data),
void *data);
-unsigned int buffer_size(const struct buffer *b);
+size_t buffer_size(const struct buffer *b);
#endif
diff --git a/include/conntrackd.h b/include/conntrackd.h
index 418f4b7..bb4b183 100644
--- a/include/conntrackd.h
+++ b/include/conntrackd.h
@@ -95,7 +95,7 @@ struct ct_conf {
struct {
char logfile[FILENAME_MAXLEN];
int syslog_facility;
- unsigned int buffer_size;
+ size_t buffer_size;
} stats;
};