diff mbox series

[OpenWrt-Devel] umdns: fix unused error

Message ID 20200405072012.86761-1-vincent@systemli.org
State Accepted
Headers show
Series [OpenWrt-Devel] umdns: fix unused error | expand

Commit Message

Nick April 5, 2020, 7:20 a.m. UTC
From: Polynomialdivision <vincent@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@systemli.org>
---
 interface.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Kevin 'ldir' Darbyshire-Bryant April 5, 2020, 8 a.m. UTC | #1
Merged.
Thank you!
Nick April 5, 2020, 8:21 a.m. UTC | #2
Thanks for your quick reply. :)
Should I update the umdns Makefile in the openwrt.git, too?

On 05.04.20 10:00, Kevin Darbyshire-Bryant wrote:
> Merged.
> Thank you!
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
diff mbox series

Patch

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)