diff options
author | Duncan Roe <duncan_roe@optusnet.com.au> | 2022-03-27 16:59:25 +1100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2022-03-27 10:30:41 +0200 |
commit | b26df377c79fe5d7b58bef36fe5f38370a50955b (patch) | |
tree | f2f31f897d3b68fcdffe5f0b303a9feaf0408aaa /examples/nf-queue.c | |
parent | 088c883bd1cac5635a39d5ffb5a8187209f553f4 (diff) |
examples: fix compiler warning
Fixes: c3bada27b1db ("examples: print hwaddr attribute if present")
Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'examples/nf-queue.c')
-rw-r--r-- | examples/nf-queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |