All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH libnetfilter_queue] examples: fix compiler warning
@ 2022-03-27  5:59 Duncan Roe
  2022-03-27  8:31 ` Florian Westphal
  0 siblings, 1 reply; 2+ messages in thread
From: Duncan Roe @ 2022-03-27  5:59 UTC (permalink / raw)
  To: pablo; +Cc: fw, netfilter-devel

(introduced by c3bada27)

Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au>
---
 examples/nf-queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/nf-queue.c b/examples/nf-queue.c
index 6983418..4466ca8 100644
--- a/examples/nf-queue.c
+++ b/examples/nf-queue.c
@@ -89,7 +89,7 @@ static int queue_cb(const struct nlmsghdr *nlh, void *data)
 	if (attr[NFQA_HWADDR]) {
 		struct nfqnl_msg_packet_hw *hw = mnl_attr_get_payload(attr[NFQA_HWADDR]);
 		unsigned int hwlen = ntohs(hw->hw_addrlen);
-		const char *addr = hw->hw_addr;
+		const unsigned char *addr = hw->hw_addr;
 		unsigned int i;
 
 		printf(", hwaddr %02x", addr[0]);
-- 
2.17.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH libnetfilter_queue] examples: fix compiler warning
  2022-03-27  5:59 [PATCH libnetfilter_queue] examples: fix compiler warning Duncan Roe
@ 2022-03-27  8:31 ` Florian Westphal
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Westphal @ 2022-03-27  8:31 UTC (permalink / raw)
  To: Duncan Roe; +Cc: pablo, fw, netfilter-devel

Duncan Roe <duncan_roe@optusnet.com.au> wrote:
> (introduced by c3bada27)

applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-27  8:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-27  5:59 [PATCH libnetfilter_queue] examples: fix compiler warning Duncan Roe
2022-03-27  8:31 ` Florian Westphal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.