Skip to content

Commit

Permalink
Fixed build on FreeBSD (attempt to fix #165)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenist authored and fangfufu committed Oct 28, 2024
1 parent 43bdf7e commit 0870041
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <stdio.h>
#include <stdlib.h>

int log_level_init()
int log_level_init(void)
{
char *env = getenv("HTTPDIRFS_LOG_LEVEL");
if (env) {
Expand Down Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down

0 comments on commit 0870041

Please sign in to comment.