[OpenWrt-Devel] [PATCH] umdns: fix unused error

vincent at systemli.org vincent at systemli.org
Sun Apr 5 03:20:12 EDT 2020


From: Polynomialdivision <vincent at systemli.org>

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 at systemli.org>
---
 interface.c | 2 ++
 1 file changed, 2 insertions(+)

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)
-- 
2.26.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list