From: Danny Mayer Date: Mon, 14 Feb 2005 05:38:25 +0000 (-0500) Subject: Bug #214: Use strcasecmp and not stricmp X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=643a8587bfb23ef45b0c6a49efb847069f8a23da;p=thirdparty%2Fntp.git Bug #214: Use strcasecmp and not stricmp bk: 42103951s2VE8KwiMyeaRTE2d7hTtw --- diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c index c1f0fff5fd..8b2ca2a9db 100644 --- a/ntpd/ntp_io.c +++ b/ntpd/ntp_io.c @@ -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 { diff --git a/ports/winnt/include/config.h b/ports/winnt/include/config.h index b92f8d01dc..16ebe99a5a 100644 --- a/ports/winnt/include/config.h +++ b/ports/winnt/include/config.h @@ -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