Lines Matching refs:cp1
3296 char *cp1, *cp2;
3314 if (*s != '[' || (cp1 = strchr(s + 1, ']')) == NULL)
3316 cp1 = s;
3317 if ((cp1 = strrchr(cp1, ':'))) {
3319 *cp1++ = '\0';
3320 if (strlen(cp1) == 1 && *cp1 == '*')
3323 else if ((se = getservbyname(cp1, "udp"))) {
3326 ap->port = strtol(cp1, &cp2, 0);
3339 if ((cp1 = strchr(s, '/')) != NULL &&
3340 strspn(cp1 + 1, "0123456789") == strlen(cp1 + 1)) {
3341 *cp1 = '\0';
3342 if ((masklen = atoi(cp1 + 1)) < 0)
3427 if (cp1)
3428 *cp1 = '/';