diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/strequal.c | 4 | ||||
-rw-r--r-- | lib/strequal.h | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/lib/strequal.c b/lib/strequal.c index 6e198f1b5..38ba23986 100644 --- a/lib/strequal.c +++ b/lib/strequal.c @@ -25,7 +25,7 @@ #include <string.h> -int Curl_strequal(const char *first, const char *second) +int curl_strequal(const char *first, const char *second) { #if defined(HAVE_STRCASECMP) return !strcasecmp(first, second); @@ -45,7 +45,7 @@ int Curl_strequal(const char *first, const char *second) #endif } -int Curl_strnequal(const char *first, const char *second, size_t max) +int curl_strnequal(const char *first, const char *second, size_t max) { #if defined(HAVE_STRCASECMP) return !strncasecmp(first, second, max); diff --git a/lib/strequal.h b/lib/strequal.h index 9901d281e..e4ed39da5 100644 --- a/lib/strequal.h +++ b/lib/strequal.h @@ -22,10 +22,14 @@ * * $Id$ *****************************************************************************/ -int Curl_strequal(const char *first, const char *second); -int Curl_strnequal(const char *first, const char *second, size_t max); -#define strequal(a,b) Curl_strequal(a,b) -#define strnequal(a,b,c) Curl_strnequal(a,b,c) +/* + * These two actually are public functions. + */ +int curl_strequal(const char *first, const char *second); +int curl_strnequal(const char *first, const char *second, size_t max); + +#define strequal(a,b) curl_strequal(a,b) +#define strnequal(a,b,c) curl_strnequal(a,b,c) #endif |