aboutsummaryrefslogtreecommitdiffstats
path: root/include/main.h
diff options
context:
space:
mode:
authorYunchih Chen <yunchih.cat@gmail.com>2018-12-10 22:48:27 +0800
committerYunchih Chen <yunchih.cat@gmail.com>2018-12-10 22:48:27 +0800
commitd791a1ca79b5dd35e030a3d40270a39218e9cb0f (patch)
tree6e1e5bea37029dcea4108da2a2d92299ae68b4d9 /include/main.h
parent098b0b68c9bc4b4fefb616cf9af4dc4a3bb92e8b (diff)
downloadnfcollect-d791a1ca79b5dd35e030a3d40270a39218e9cb0f.tar.gz
nfcollect-d791a1ca79b5dd35e030a3d40270a39218e9cb0f.tar.zst
nfcollect-d791a1ca79b5dd35e030a3d40270a39218e9cb0f.zip
Miscellaneous improvements
Diffstat (limited to 'include/main.h')
-rw-r--r--include/main.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/main.h b/include/main.h
index c2407e1..f64fe46 100644
--- a/include/main.h
+++ b/include/main.h
@@ -85,9 +85,9 @@
#define unlikely(x) __builtin_expect((x), 0)
#ifdef __GNUC__
-#define UNUSED_FUNCTION(x) __attribute__((__unused__)) UNUSED_ ## x
+#define UNUSED_FUNCTION(x) __attribute__((__unused__)) UNUSED_##x
#else
-#define UNUSED_FUNCTION(x) UNUSED_ ## x
+#define UNUSED_FUNCTION(x) UNUSED_##x
#endif
enum CompressionType { COMPRESS_NONE, COMPRESS_LZ4, COMPRESS_ZSTD };
@@ -129,8 +129,8 @@ typedef struct _nfl_nl_t {
typedef struct _Global {
uint16_t nl_group_id;
- uint32_t storage_budget;
- uint32_t storage_consumed;
+ int64_t storage_budget;
+ int64_t storage_consumed;
pthread_mutex_t storage_consumed_lock;
uint32_t max_nr_entries;