diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2011-05-03 10:10:59 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2011-05-03 10:10:59 -0400 |
commit | ff108a1414736fe057b4eada10f4a8c3dc32ac39 (patch) | |
tree | 942d28cad437dd20bf29cb60ad58ad4949b87c96 /include/duser.h | |
parent | 91af8f14863a516ff9aa80b703d8a34583e6e107 (diff) | |
parent | 4957bf13b26a403271c9838a9b74b9f61682fa8e (diff) | |
download | duser-ff108a1414736fe057b4eada10f4a8c3dc32ac39.tar.gz |
Merge pull request #5 from extrarius/master.
Various code clean ups to solve potential problems
Diffstat (limited to 'include/duser.h')
-rw-r--r-- | include/duser.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/duser.h b/include/duser.h index d562b33..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,6 +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); -char *strcasestr(const char *s, const char *find); -char *strchrnul(const char* s, int c); +int check_cmd_string(char** args, const char* str2, int count); #endif |