summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPolynomialdivision2020-04-05 07:20:12 +0000
committerKevin Darbyshire-Bryant2020-04-05 08:00:01 +0000
commitab7a39a5b5a0ff74601dd4e82145ca554c1e2ac6 (patch)
tree350bd3f9627de553b4ebd7eb106fa5ee0c96f3eb
parent45c4953b602962ae7ff335d9a346000f00680952 (diff)
downloadmdnsd-ab7a39a5b5a0ff74601dd4e82145ca554c1e2ac6.tar.gz
umdns: fix unused error
Umdns does not compile on target-arm_cortex-a15+neon-vfpv4_musl_eabi. Add the ttl variable to debug output to supress unused warning that leads to an error. Signed-off-by: Nick Hainke <vincent@systemli.org>
-rw-r--r--interface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/interface.c b/interface.c
index 9c5b048..d3f2ad3 100644
--- a/interface.c
+++ b/interface.c
@@ -244,6 +244,7 @@ read_socket4(struct uloop_fd *u, unsigned int events)
fprintf(stderr, " dst %s\n", buf);
inet_ntop(AF_INET, &inp->ipi_addr, buf, 256);
fprintf(stderr, " real %s\n", buf);
+ fprintf(stderr, " ttl %u\n", ttl);
}
if (inp->ipi_ifindex != iface->ifindex)
@@ -316,6 +317,7 @@ read_socket6(struct uloop_fd *u, unsigned int events)
fprintf(stderr, " src %s:%d\n", buf, ntohs(from.sin6_port));
inet_ntop(AF_INET6, &inp->ipi6_addr, buf, 256);
fprintf(stderr, " dst %s\n", buf);
+ fprintf(stderr, " ttl %u\n", ttl);
}
if (inp->ipi6_ifindex != iface->ifindex)