projects
/
project
/
mdnsd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45c4953
)
umdns: fix unused error
author
Polynomialdivision
<vincent@systemli.org>
Sun, 5 Apr 2020 07:20:12 +0000
(09:20 +0200)
committer
Kevin Darbyshire-Bryant
<ldir@darbyshire-bryant.me.uk>
Sun, 5 Apr 2020 08:00:01 +0000
(09:00 +0100)
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
patch
|
blob
|
history
diff --git
a/interface.c
b/interface.c
index 9c5b048a008cb82fee130381fb019d2520f0a2c7..d3f2ad34220105a190b26cd3d559785b1f23fc9e 100644
(file)
--- 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)