Skip to contentSkip to conversation

examples: fix compiler warning

PATCH Applied Duncan Roe 2 participants 2 messages Mar 27, 2022 netfilter

lore
Share & tools
lore

Duncan Roe

author
#0 lore raw

PATCH 1/1 examples: fix compiler warning

(introduced by c3bada27)

---
 examples/nf-queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
examples/nf-queue.c +1 -1
index 6983418..4466ca8 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 1 line · Duncan Roe

(introduced by c3bada27)

applied, thanks.