From 0b20b98e9b2e87eb2e9e10f658d2d523b0ee9fb6 Mon Sep 17 00:00:00 2001 From: Alan Brault Date: Mon, 2 May 2011 18:58:40 -0400 Subject: Remove strcasestr() and strchrnul() checks from configure, using libdusercompat.a instead Fix Makefile.am bad entry Clean up compat, bring in strcasestr from OpenBSD and strchrnul from uclibc and separate the headers. 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/duser.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'include/duser.h') 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 -- cgit