From: Duncan Roe <duncan_roe@optusnet.com.au>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH libnetfilter_queue 4/5] src: Fix invalid conversion specifier
Date: Tue, 8 Oct 2019 11:49:47 +1100 [thread overview]
Message-ID: <20191008004948.25632-5-duncan_roe@optusnet.com.au> (raw)
In-Reply-To: <20191008004948.25632-1-duncan_roe@optusnet.com.au>
Clang (but not gcc) warned about this. Gcc (but not clang) used to warn that
nfq_set_verdict_mark is deprecated, but this has stopped since re-defining
EXPORT_SYMBOL.
Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au>
---
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--git a/src/extra/ipv6.c b/src/extra/ipv6.c
index 531e84a..beb7d57 100644
--- a/src/extra/ipv6.c
+++ b/src/extra/ipv6.c
@@ -134,7 +134,7 @@ nfq_ip6_snprintf(char *buf, size_t size, const struct ip6_hdr *ip6h)
inet_ntop(AF_INET6, &ip6h->ip6_src, src, INET6_ADDRSTRLEN);
inet_ntop(AF_INET6, &ip6h->ip6_dst, dst, INET6_ADDRSTRLEN);
- ret = snprintf(buf, size, "SRC=%s DST=%s LEN=%Zu TC=0x%X "
+ ret = snprintf(buf, size, "SRC=%s DST=%s LEN=%zu TC=0x%X "
"HOPLIMIT=%u FLOWLBL=%u ",
src, dst,
ntohs(ip6h->ip6_plen) + sizeof(struct ip6_hdr),
--
2.14.5
next prev parent reply other threads:[~2019-10-08 0:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-08 0:49 [PATCH libnetfilter_queue 0/5] clang and documentation updates Duncan Roe
2019-10-08 0:49 ` [PATCH libnetfilter_queue 1/5] src: doc: Miscellaneous updates Duncan Roe
2019-10-08 0:49 ` [PATCH libnetfilter_queue 2/5] src: Enable clang build Duncan Roe
2019-10-08 0:49 ` [PATCH libnetfilter_queue 3/5] doxygen: remove EXPORT_SYMBOL from the output Duncan Roe
2019-10-08 0:49 ` Duncan Roe [this message]
2019-10-08 0:49 ` [PATCH libnetfilter_queue 5/5] src: doc: Minor fix Duncan Roe
2019-10-08 10:27 ` [PATCH libnetfilter_queue 0/5] clang and documentation updates Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191008004948.25632-5-duncan_roe@optusnet.com.au \
--to=duncan_roe@optusnet.com.au \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).