diff options
author | Gerald Carter <jerry@samba.org> | 2000-08-29 14:33:39 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2000-08-29 14:33:39 +0000 |
commit | dfdca21bd90b9c83f195d580ec9d774f1be8f9cb (patch) | |
tree | 40e58a7a8e5eb1ace0c3265edda331241df0a4d6 /source/param | |
parent | e89117f418c9c1a1b4f2e9d708030369d801a01c (diff) | |
download | samba-dfdca21bd90b9c83f195d580ec9d774f1be8f9cb.tar.gz samba-dfdca21bd90b9c83f195d580ec9d774f1be8f9cb.tar.xz samba-dfdca21bd90b9c83f195d580ec9d774f1be8f9cb.zip |
needed to use strwicmp() in smbclient code, so I moved it to util_str.c
and made it non-static
--jerry
Diffstat (limited to 'source/param')
-rw-r--r-- | source/param/loadparm.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c index 957ba880111..da23ab1cb69 100644 --- a/source/param/loadparm.c +++ b/source/param/loadparm.c @@ -1786,37 +1786,6 @@ BOOL lp_add_printer(char *pszPrintername, int iDefaultService) return (True); } - -/*************************************************************************** -Do a case-insensitive, whitespace-ignoring string compare. -***************************************************************************/ -static int strwicmp(char *psz1, char *psz2) -{ - /* if BOTH strings are NULL, return TRUE, if ONE is NULL return */ - /* appropriate value. */ - if (psz1 == psz2) - return (0); - else if (psz1 == NULL) - return (-1); - else if (psz2 == NULL) - return (1); - - /* sync the strings on first non-whitespace */ - while (1) - { - while (isspace(*psz1)) - psz1++; - while (isspace(*psz2)) - psz2++; - if (toupper(*psz1) != toupper(*psz2) || *psz1 == '\0' - || *psz2 == '\0') - break; - psz1++; - psz2++; - } - return (*psz1 - *psz2); -} - /*************************************************************************** Map a parameter's string representation to something we can use. Returns False if the parameter string is not recognised, else TRUE. |