Skip to content

Commit

Permalink
partially fix FreeBSD compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fangfufu committed Oct 28, 2024
1 parent de9e594 commit d2952b0
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ srcs = [
]

c_args = [
'-Wstrict-prototypes',
'-pthread',
'-D_GNU_SOURCE',
'-DVERSION="' + meson.project_version() + '"'
Expand Down
6 changes: 3 additions & 3 deletions src/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ void CacheSystem_init(const char *path, int url_supplied);
/**
* \brief clear the content of the cache directory
*/
void CacheSystem_clear();
void CacheSystem_clear(void);

/**
* \brief Return the fullpath to the cache directory
*/
char *CacheSystem_get_cache_dir();
char *CacheSystem_get_cache_dir(void);

/**
* \brief Create directories under the cache directory structure, if they do
Expand Down Expand Up @@ -153,4 +153,4 @@ void Cache_delete(const char *fn);
*/
long Cache_read(Cache *cf, char *const output_buf, const off_t len,
const off_t offset_start);
#endif
#endif
6 changes: 3 additions & 3 deletions src/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ typedef enum {
/**
* \brief Get the log level from the environment.
*/
int log_level_init();
int log_level_init(void);

/**
* \brief Log printf
Expand All @@ -44,6 +44,6 @@ void log_printf(LogType type, const char *file, const char *func, int line,
/**
* \brief Print the version information for HTTPDirFS
*/
void print_version();
void print_version(void);

#endif
#endif
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

void add_arg(char ***fuse_argv_ptr, int *fuse_argc, char *opt_string);
static void print_help(char *program_name, int long_help);
static void print_long_help();
static void print_long_help(void);
static int
parse_arg_list(int argc, char **argv, char ***fuse_argv, int *fuse_argc);
void parse_config_file(char ***argv, int *argc);
Expand Down Expand Up @@ -431,4 +431,4 @@ HTTPDirFS options:\n\
using the insecure username / hex encoded password\n\
scheme\n\
\n");
}
}
2 changes: 1 addition & 1 deletion src/memcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ size_t write_memory_callback(void *recv_data, size_t size, size_t nmemb,
ts->data[ts->curr_size] = '\0';

return recv_size;
}
}
2 changes: 1 addition & 1 deletion src/memcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ struct TransferStruct {
size_t write_memory_callback(void *contents, size_t size, size_t nmemb,
void *userp);

#endif
#endif

0 comments on commit d2952b0

Please sign in to comment.