aboutsummaryrefslogtreecommitdiff
path: root/ares/windows_port.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-15 15:28:26 +0000
committerYang Tse <yangsita@gmail.com>2008-09-15 15:28:26 +0000
commit8085c7a4500467df01d82b381e6830b2caf2dbbe (patch)
treef5a0f07505ba317ec9d197360ad5ca7eee0599b4 /ares/windows_port.c
parent842de91168f86858415069192782212526cc9ebe (diff)
rearrange to allow internal/private use of ares_strcasecmp to any system that
lacks the strcasecmp function.
Diffstat (limited to 'ares/windows_port.c')
-rw-r--r--ares/windows_port.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/ares/windows_port.c b/ares/windows_port.c
index 7ea6579fd..8b5e14977 100644
--- a/ares/windows_port.c
+++ b/ares/windows_port.c
@@ -34,27 +34,6 @@ WINAPI DllMain (HINSTANCE hnd, DWORD reason, LPVOID reserved)
}
#endif
-#ifndef __MINGW32__
-int
-ares_strncasecmp(const char *a, const char *b, int n)
-{
- int i;
-
- for (i = 0; i < n; i++) {
- int c1 = ISUPPER(a[i]) ? tolower(a[i]) : a[i];
- int c2 = ISUPPER(b[i]) ? tolower(b[i]) : b[i];
- if (c1 != c2) return c1-c2;
- }
- return 0;
-}
-
-int
-ares_strcasecmp(const char *a, const char *b)
-{
- return strncasecmp(a, b, strlen(a)+1);
-}
-#endif
-
int
ares_writev (ares_socket_t s, const struct iovec *vector, size_t count)
{