From 746f3e2942c36511fda867cac0573d2907290db0 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 15 Sep 2008 15:28:26 +0000 Subject: rearrange to allow internal/private use of ares_strcasecmp to any system that lacks the strcasecmp function. --- windows_port.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'windows_port.c') diff --git a/windows_port.c b/windows_port.c index 7ea6579..8b5e149 100644 --- a/windows_port.c +++ b/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) { -- cgit v1.2.3