diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/main.h | 8 | ||||
-rw-r--r-- | include/util.h | 1 |
2 files changed, 5 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; diff --git a/include/util.h b/include/util.h index f1fd965..3d92764 100644 --- a/include/util.h +++ b/include/util.h @@ -2,6 +2,7 @@ #define UTIL_H #include "main.h" int check_basedir_exist(const char *storage); +int check_file_size(const char *storage); int check_file_exist(const char *storage); enum CompressionType get_compression(const char *flag); |