Lines Matching refs:wp
510 struct wordlist *wp;
512 wp = (struct wordlist *) malloc(sizeof(struct wordlist) + l);
513 if (wp == NULL)
515 wp->word = (char *) (wp + 1);
516 wp->next = noauth_addrs;
517 MEMCPY(wp->word, addr, l);
518 noauth_addrs = wp;
532 struct wordlist *wp;
534 wp = (struct wordlist *) malloc(sizeof(struct wordlist) + l);
535 if (wp == NULL)
537 wp->word = (char *) (wp + 1);
538 wp->next = permitted_numbers;
539 MEMCPY(wp->word, number, l);
540 permitted_numbers = wp;
2266 struct wordlist *wp = permitted_numbers;
2270 if (!wp)
2274 while (wp) {
2276 l = strlen(wp->word);
2277 if ((wp->word)[l - 1] == '*')
2279 if (!strncasecmp(wp->word, remote_number, l))
2281 wp = wp->next;
2483 wordlist_count(wp)
2484 struct wordlist *wp;
2488 for (n = 0; wp != NULL; wp = wp->next)
2497 free_wordlist(wp)
2498 struct wordlist *wp;
2502 while (wp != NULL) {
2503 next = wp->next;
2504 free(wp);
2505 wp = next;