Lines Matching refs:cp1
2199 char *cp1, *cp2;
2212 if (*s != '[' || (cp1 = strchr(s + 1, ']')) == NULL)
2214 cp1 = s;
2215 if ((cp1 = strrchr(cp1, ':'))) {
2217 *cp1++ = '\0';
2218 if (strlen(cp1) == 1 && *cp1 == '*')
2221 else if ((se = getservbyname(cp1, "udp"))) {
2224 ap.port = strtol(cp1, &cp2, 0);
2236 if ((cp1 = strchr(s, '/')) != NULL &&
2237 strspn(cp1 + 1, "0123456789") == strlen(cp1 + 1)) {
2238 *cp1 = '\0';
2239 if ((masklen = atoi(cp1 + 1)) < 0)
2320 if (cp1)
2321 *cp1 = '/';