mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Fix cosmetic big in dump_cache_entry()
This commit is contained in:
@@ -1078,7 +1078,6 @@ static void add_hosts_entry(struct crec *cache, union all_addr *addr, int addrle
|
|||||||
the array rhash, hashed on address. Note that rhash and the values
|
the array rhash, hashed on address. Note that rhash and the values
|
||||||
in ->next are only valid whilst reading hosts files: the buckets are
|
in ->next are only valid whilst reading hosts files: the buckets are
|
||||||
then freed, and the ->next pointer used for other things.
|
then freed, and the ->next pointer used for other things.
|
||||||
|
|
||||||
Only insert each unique address once into this hashing structure.
|
Only insert each unique address once into this hashing structure.
|
||||||
|
|
||||||
This complexity avoids O(n^2) divergent CPU use whilst reading
|
This complexity avoids O(n^2) divergent CPU use whilst reading
|
||||||
@@ -1823,7 +1822,7 @@ static void dump_cache_entry(struct crec *cache, time_t now)
|
|||||||
else if (cache->flags & F_DNSKEY)
|
else if (cache->flags & F_DNSKEY)
|
||||||
t = "K";
|
t = "K";
|
||||||
#endif
|
#endif
|
||||||
else /* non-terminal */
|
else if (!(cache->flags & F_NXDOMAIN)) /* non-terminal */
|
||||||
t = "!";
|
t = "!";
|
||||||
|
|
||||||
p += sprintf(p, "%-40.40s %s%s%s%s%s%s%s%s%s%s ", a, t,
|
p += sprintf(p, "%-40.40s %s%s%s%s%s%s%s%s%s%s ", a, t,
|
||||||
|
|||||||
Reference in New Issue
Block a user