examples: fix compiler warning
PATCH 1/1 examples: fix compiler warning
(introduced by c3bada27)
Signed-off-by Duncan Roe <[email protected]>
--- examples/nf-queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
examples/nf-queue.c +1 -1
@@ -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 ]);
Signature · 1 line
2.17.5
Quoted 1 line · Duncan Roe
(introduced by
c3bada27)
applied, thanks.