Lines Matching refs:ah1
770 struct hostsfile* ah1; in cache_reload() local
784 for (ah1 = daemon->addn_hosts; ah1; ah1 = ah1->next) { in cache_reload()
785 if (lendir < strlen(ah1->fname) && in cache_reload()
786 strstr(ah1->fname, ah->fname) == ah1->fname && in cache_reload()
787 ah1->fname[lendir] == '/' && in cache_reload()
788 strcmp(ah1->fname + lendir + 1, ent->d_name) == 0) { in cache_reload()
789 ah1->flags &= ~AH_INACTIVE; in cache_reload()
795 if (!ah1) { in cache_reload()
796 if (!(ah1 = whine_malloc(sizeof(struct hostsfile)))) continue; in cache_reload()
799 free(ah1); in cache_reload()
806 ah1->fname = path; in cache_reload()
807 ah1->index = i++; in cache_reload()
808 ah1->flags = AH_DIR; in cache_reload()
809 ah1->next = daemon->addn_hosts; in cache_reload()
810 daemon->addn_hosts = ah1; in cache_reload()
814 if ((ah1->flags & AH_DIR) && stat(ah1->fname, &buf) != -1 && in cache_reload()
816 ah1->flags |= AH_INACTIVE; in cache_reload()