From: wessels <> Date: Sat, 3 Jan 1998 04:35:37 +0000 (+0000) Subject: use strchr(), not index() X-Git-Tag: SQUID_3_0_PRE1~4281 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78947b18e82295b20ee793759b07d653d73ae0d6;p=thirdparty%2Fsquid.git use strchr(), not index() --- diff --git a/src/asn.cc b/src/asn.cc index 036f743677..843ce80800 100644 --- a/src/asn.cc +++ b/src/asn.cc @@ -266,7 +266,7 @@ asnAddNet(char *as_string, int as_number) char *t; int bitl; - t = index(as_string, '/'); + t = strchr(as_string, '/'); if (t == NULL) { debug(53, 3) ("asnAddNet: failed, invalid response from whois server.\n"); return 0;