Lines Matching defs:cp
170 mDNSlocal void ReleaseAuthGroup(AuthHash *r, AuthGroup **cp)
172 AuthEntity *e = (AuthEntity *)(*cp);
173 LogMsg("ReleaseAuthGroup: Releasing AuthGroup %##s", (*cp)->name->c);
174 if ((*cp)->rrauth_tail != &(*cp)->members)
175 LogMsg("ERROR: (*cp)->members == mDNSNULL but (*cp)->rrauth_tail != &(*cp)->members)");
176 if ((*cp)->name != (domainname*)((*cp)->namestorage)) mDNSPlatformMemFree((*cp)->name);
177 (*cp)->name = mDNSNULL;
178 *cp = (*cp)->next; // Cut record from list
208 AuthGroup **cp = &r->rrauth_hash[slot];
209 while (*cp)
211 if ((*cp)->members || (*cp)==PreserveAG) cp=&(*cp)->next;
212 else ReleaseAuthGroup(r, cp);
3686 mDNSlocal void ReleaseCacheGroup(mDNS *const m, CacheGroup **cp)
3688 CacheEntity *e = (CacheEntity *)(*cp);
3689 //LogMsg("ReleaseCacheGroup: Releasing CacheGroup for %p, %##s", (*cp)->name->c, (*cp)->name->c);
3690 if ((*cp)->rrcache_tail != &(*cp)->members)
3691 LogMsg("ERROR: (*cp)->members == mDNSNULL but (*cp)->rrcache_tail != &(*cp)->members)");
3692 //if ((*cp)->name != (domainname*)((*cp)->namestorage))
3693 // LogMsg("ReleaseCacheGroup: %##s, %p %p", (*cp)->name->c, (*cp)->name, (domainname*)((*cp)->namestorage));
3694 if ((*cp)->name != (domainname*)((*cp)->namestorage)) mDNSPlatformMemFree((*cp)->name);
3695 (*cp)->name = mDNSNULL;
3696 *cp = (*cp)->next; // Cut record from list
4071 CacheGroup **cp = &m->rrcache_hash[slot];
4072 while (*cp)
4074 CacheRecord **rp = &(*cp)->members;
4088 if ((*cp)->rrcache_tail != rp)
4089 verbosedebugf("GetFreeCacheRR: Updating rrcache_tail[%lu] from %p to %p", slot, (*cp)->rrcache_tail, rp);
4090 (*cp)->rrcache_tail = rp;
4091 if ((*cp)->members || (*cp)==PreserveCG) cp=&(*cp)->next;
4092 else ReleaseCacheGroup(m, cp);
4324 CacheGroup **cp = &m->rrcache_hash[slot];
4326 while (*cp)
4328 debugf("m->NextCacheCheck %4d Slot %3d %##s", numchecked, slot, *cp ? (*cp)->name : (domainname*)"\x04NULL");
4330 CheckCacheExpiration(m, slot, *cp);
4331 if ((*cp)->members) cp=&(*cp)->next;
4332 else ReleaseCacheGroup(m, cp);