Fix cosmetic big in dump_cache_entry()

This commit is contained in:
Simon Kelley
2023-01-04 23:10:07 +00:00
parent 1da54210fc
commit 3822825e54

View File

@@ -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,