diff options
author | Yunchih Chen <yunchih.cat@gmail.com> | 2018-12-10 22:48:27 +0800 |
---|---|---|
committer | Yunchih Chen <yunchih.cat@gmail.com> | 2019-03-07 15:02:17 +0800 |
commit | fa55b263ffe043ea38f5f62b504630fba44b9469 (patch) | |
tree | d75e6b01010b1f63a52637d257e4ac349373ec1a /include/main.h | |
parent | 6297f69da8f443c0e8cce03e97437945170a9cc4 (diff) | |
download | nfcollect-fa55b263ffe043ea38f5f62b504630fba44b9469.tar nfcollect-fa55b263ffe043ea38f5f62b504630fba44b9469.tar.gz nfcollect-fa55b263ffe043ea38f5f62b504630fba44b9469.tar.bz2 nfcollect-fa55b263ffe043ea38f5f62b504630fba44b9469.tar.lz nfcollect-fa55b263ffe043ea38f5f62b504630fba44b9469.tar.xz nfcollect-fa55b263ffe043ea38f5f62b504630fba44b9469.tar.zst nfcollect-fa55b263ffe043ea38f5f62b504630fba44b9469.zip |
Miscellaneous improvements
Diffstat (limited to 'include/main.h')
-rw-r--r-- | include/main.h | 8 |
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; |