GCC spots this bug, causing the build to fail with a warning.
Closes:#891544.
The effect is that for reverse lookups only IPv4 would work.
IPv6 should work now.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
if (op.reverseany || (op.sflags & oisf_reverse)) {
const int *af;
- for (af=aftry; af < af + sizeof(af)/sizeof(*af); af++) {
+ for (af=aftry; af < af + sizeof(aftry)/sizeof(*aftry); af++) {
memset(&sa,0,sizeof(sa));
sa.sa_family= *af;
r= inet_pton(*af,domain,&sa);
chiark-tcl (1.2.2~) unstable; urgency=medium
+ adns:
+ * Fix IPv6 PTR (reverse) lookups, and compilation with GCC-8.
+ Closes:#891544.
+
tcmdifgen:
* Turn on warnings and `use strict' and fix everything.
* Replace deprecated `use IO;' with `use IO::File'.