From: Polynomialdivision Date: Sun, 5 Apr 2020 07:20:12 +0000 (+0200) Subject: umdns: fix unused error X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ab7a39a5b5a0ff74601dd4e82145ca554c1e2ac6;p=oweals%2Fmdnsd.git 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 --- 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)