aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-14 08:47:56 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-14 08:47:56 +0000
commit3738e4bdc0fa250e47a92f4d0bf611177104cc78 (patch)
tree9c78f30b7b01762edf16745985d1d94307b10ab8
parent3201d2dafa25e46b6909d3eba91efd55fd785474 (diff)
The Curl_* prefixes are now changed for curl_* ones, as these two functions
are used externally and thus are public symbols.
-rw-r--r--lib/strequal.c4
-rw-r--r--lib/strequal.h12
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