From 08700415d7b61d9f611a858481b26858fe92eb7a Mon Sep 17 00:00:00 2001 From: edenist Date: Mon, 28 Oct 2024 12:30:24 +1100 Subject: [PATCH] Fixed build on FreeBSD (attempt to fix #165) --- src/cache.c | 4 ++-- src/log.c | 4 ++-- src/main.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cache.c b/src/cache.c index 4c8ad85..b8799c0 100644 --- a/src/cache.c +++ b/src/cache.c @@ -36,7 +36,7 @@ static pthread_mutex_t cf_lock; static char *DATA_DIR; -char *CacheSystem_get_cache_dir() +char *CacheSystem_get_cache_dir(void) { if (CONFIG.cache_dir) { return CONFIG.cache_dir; @@ -184,7 +184,7 @@ static int ntfw_cb(const char *fpath, const struct stat *sb, int typeflag, struc return remove(fpath); } -void CacheSystem_clear() +void CacheSystem_clear(void) { char *cache_home = CacheSystem_get_cache_dir(); const char *cache_del; diff --git a/src/log.c b/src/log.c index 11ce891..9828757 100644 --- a/src/log.c +++ b/src/log.c @@ -9,7 +9,7 @@ #include #include -int log_level_init() +int log_level_init(void) { char *env = getenv("HTTPDIRFS_LOG_LEVEL"); if (env) { @@ -64,7 +64,7 @@ print_actual_message: { } } -void print_version() +void print_version(void) { /* FUSE prints its help to stderr */ fprintf(stderr, "HTTPDirFS version " VERSION "\n"); diff --git a/src/main.c b/src/main.c index f1307c9..2dde953 100644 --- a/src/main.c +++ b/src/main.c @@ -373,7 +373,7 @@ static void print_help(char *program_name, int long_help) } } -static void print_long_help() +static void print_long_help(void) { /* FUSE prints its help to stderr */ fprintf(stderr, "\n\