Skip to content

Commit 0870041

Browse files
edenistfangfufu
authored andcommitted
Fixed build on FreeBSD (attempt to fix #165)
1 parent 43bdf7e commit 0870041

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/cache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static pthread_mutex_t cf_lock;
3636
static char *DATA_DIR;
3737

3838

39-
char *CacheSystem_get_cache_dir()
39+
char *CacheSystem_get_cache_dir(void)
4040
{
4141
if (CONFIG.cache_dir) {
4242
return CONFIG.cache_dir;
@@ -184,7 +184,7 @@ static int ntfw_cb(const char *fpath, const struct stat *sb, int typeflag, struc
184184
return remove(fpath);
185185
}
186186

187-
void CacheSystem_clear()
187+
void CacheSystem_clear(void)
188188
{
189189
char *cache_home = CacheSystem_get_cache_dir();
190190
const char *cache_del;

src/log.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <stdio.h>
1010
#include <stdlib.h>
1111

12-
int log_level_init()
12+
int log_level_init(void)
1313
{
1414
char *env = getenv("HTTPDIRFS_LOG_LEVEL");
1515
if (env) {
@@ -64,7 +64,7 @@ print_actual_message: {
6464
}
6565
}
6666

67-
void print_version()
67+
void print_version(void)
6868
{
6969
/* FUSE prints its help to stderr */
7070
fprintf(stderr, "HTTPDirFS version " VERSION "\n");

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ static void print_help(char *program_name, int long_help)
373373
}
374374
}
375375

376-
static void print_long_help()
376+
static void print_long_help(void)
377377
{
378378
/* FUSE prints its help to stderr */
379379
fprintf(stderr, "\n\

0 commit comments

Comments
 (0)