From 4957bf13b26a403271c9838a9b74b9f61682fa8e Mon Sep 17 00:00:00 2001 From: Alan Brault Date: Tue, 3 May 2011 09:50:15 -0400 Subject: Remove config.h from strchrnul.c; not needed Fix numerous shadow declaration bugs that could cause problems for Solaris libc Fix bad prototype using in unlink() --- include/cfg.h | 2 +- include/duser.h | 7 ++++--- include/version.h | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/cfg.h b/include/cfg.h index d3814f3..b50c16b 100644 --- a/include/cfg.h +++ b/include/cfg.h @@ -23,7 +23,7 @@ #define CFG_MAX 255 int cfg_open(const char* filename); -void cfg_close(); +void cfg_close(void); int cfg_get_key(char* val, const char* key); #endif diff --git a/include/duser.h b/include/duser.h index e955252..345bf49 100644 --- a/include/duser.h +++ b/include/duser.h @@ -58,11 +58,11 @@ typedef struct record_t int pad3; } record_t; -void usage(); +void usage(void); int strval(const char* str); int strfind(const char* str1, const char* str2); -int logcleanup(); -int COM(const char* func, char *format, ...); +int logcleanup(void); +int COM(const char* func, const char *format, ...); record_t* find_in_file(const char* filename, const char* needle); int get_file_count(const char* path); char** get_file_list(const char* path, int count); @@ -77,4 +77,5 @@ int user_cmd(const int argc, char* argv[]); int user_choice(char c); int user_add(const char* filename, const char* needle); int user_new_list(const char* fname); +int check_cmd_string(char** args, const char* str2, int count); #endif diff --git a/include/version.h b/include/version.h index 52763c1..ddbf2b7 100644 --- a/include/version.h +++ b/include/version.h @@ -5,5 +5,5 @@ #define VER_MINOR "0" #define VER_OTH " " -void version(); +void version(void); #endif -- cgit