Lines Matching refs:wp
504 struct wordlist *wp;
506 wp = (struct wordlist *) malloc(sizeof(struct wordlist) + l);
507 if (wp == NULL)
509 wp->word = (char *) (wp + 1);
510 wp->next = noauth_addrs;
511 BCOPY(addr, wp->word, l);
512 noauth_addrs = wp;
526 struct wordlist *wp;
528 wp = (struct wordlist *) malloc(sizeof(struct wordlist) + l);
529 if (wp == NULL)
531 wp->word = (char *) (wp + 1);
532 wp->next = permitted_numbers;
533 BCOPY(number, wp->word, l);
534 permitted_numbers = wp;
2288 struct wordlist *wp = permitted_numbers;
2292 if (!wp)
2296 while (wp) {
2298 l = strlen(wp->word);
2299 if ((wp->word)[l - 1] == '*')
2301 if (!strncasecmp(wp->word, remote_number, l))
2303 wp = wp->next;
2506 wordlist_count(wp)
2507 struct wordlist *wp;
2511 for (n = 0; wp != NULL; wp = wp->next)
2520 free_wordlist(wp)
2521 struct wordlist *wp;
2525 while (wp != NULL) {
2526 next = wp->next;
2527 free(wp);
2528 wp = next;