From: wessels <> Date: Fri, 31 Jul 1998 04:39:40 +0000 (+0000) Subject: use strcasecmp() instead of strncasecmp() X-Git-Tag: SQUID_3_0_PRE1~2953 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0103c4c194d2d7a908d00b8ac31a69ba32c8b691;p=thirdparty%2Fsquid.git use strcasecmp() instead of strncasecmp() --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index bf403df53e..9bd988edfc 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.292 1998/07/22 20:37:01 wessels Exp $ + * $Id: cache_cf.cc,v 1.293 1998/07/30 22:39:40 wessels Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -769,7 +769,7 @@ parse_peer(peer ** head) EBIT_SET(p->options, NEIGHBOR_MCAST_RESPONDER); } else if (!strncasecmp(token, "weight=", 7)) { p->weight = atoi(token + 7); - } else if (!strncasecmp(token, "closest-only", 12)) { + } else if (!strcasecmp(token, "closest-only")) { EBIT_SET(p->options, NEIGHBOR_CLOSEST_ONLY); } else if (!strncasecmp(token, "ttl=", 4)) { p->mcast.ttl = atoi(token + 4); @@ -777,15 +777,15 @@ parse_peer(peer ** head) p->mcast.ttl = 0; if (p->mcast.ttl > 128) p->mcast.ttl = 128; - } else if (!strncasecmp(token, "default", 7)) { + } else if (!strcasecmp(token, "default")) { EBIT_SET(p->options, NEIGHBOR_DEFAULT_PARENT); - } else if (!strncasecmp(token, "round-robin", 11)) { + } else if (!strcasecmp(token, "round-robin")) { EBIT_SET(p->options, NEIGHBOR_ROUNDROBIN); #if USE_HTCP - } else if (!strncasecmp(token, "htcp", 4)) { + } else if (!strcasecmp(token, "htcp")) { EBIT_SET(p->options, NEIGHBOR_HTCP); #endif - } else if (!strncasecmp(token, "no-netdb-exchange", 17)) { + } else if (!strcasecmp(token, "no-netdb-exchange")) { EBIT_SET(p->options, NEIGHBOR_NO_NETDB_EXCHANGE); #if USE_CARP } else if (!strncasecmp(token, "carp-load-factor=", 17)) {