]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Bug #214: Use strcasecmp and not stricmp
authorDanny Mayer <mayer@ntp.org>
Mon, 14 Feb 2005 05:38:25 +0000 (00:38 -0500)
committerDanny Mayer <mayer@ntp.org>
Mon, 14 Feb 2005 05:38:25 +0000 (00:38 -0500)
bk: 42103951s2VE8KwiMyeaRTE2d7hTtw

ntpd/ntp_io.c
ports/winnt/include/config.h

index c1f0fff5fdd140ea8a44f90f713b1c974f000898..8b2ca2a9dbbba5cd531522eb06acd5f8a3ce6f35 100644 (file)
@@ -415,7 +415,7 @@ address_okay(isc_interface_t *isc_if) {
         * Check if the interface is specified
         */
        if (specific_interface != NULL) {
-               if (stricmp(isc_if->name, specific_interface) == 0)
+               if (strcasecmp(isc_if->name, specific_interface) == 0)
                        return (ISC_TRUE);
        }
        else {
index b92f8d01dcaad4e4422095619b11de6a8f0c212a..16ebe99a5a44120cb5dc1b24eecf20c7e5c54dac 100644 (file)
@@ -79,6 +79,7 @@
 #define vsnprintf _vsnprintf
 #define snprintf _snprintf
 #define stricmp _stricmp
+#define strcasecmp _stricmp
 #define isascii __isascii
 #define finite _finite
 #define random      rand