diff options
Diffstat (limited to 'source4/lib/util/util_str.c')
-rw-r--r-- | source4/lib/util/util_str.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/source4/lib/util/util_str.c b/source4/lib/util/util_str.c index 163ef3828e..86cd3176c5 100644 --- a/source4/lib/util/util_str.c +++ b/source4/lib/util/util_str.c @@ -25,7 +25,6 @@ #include "includes.h" #include "libcli/raw/smb.h" #include "pstring.h" -#include "lib/ldb/include/ldb.h" #include "system/locale.h" /** @@ -247,29 +246,6 @@ _PUBLIC_ void hex_encode(const unsigned char *buff_in, size_t len, char **out_he } /** - Check if a string is part of a list. -**/ -_PUBLIC_ BOOL in_list(const char *s, const char *list, BOOL casesensitive) -{ - pstring tok; - const char *p=list; - - if (!list) - return(False); - - while (next_token(&p,tok,LIST_SEP,sizeof(tok))) { - if (casesensitive) { - if (strcmp(tok,s) == 0) - return(True); - } else { - if (strcasecmp_m(tok,s) == 0) - return(True); - } - } - return(False); -} - -/** Set a string value, allocing the space for the string **/ static BOOL string_init(char **dest,const char *src) |