Skip to contentSkip to conversation

tests: conntrackd: fix compile errors and warnings

PATCH Applied Ansis Atteka 2 participants 2 messages Aug 24, 2012 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: conntrackd: fix compile errors and warnings

This patch fixes few compile warnings and errors.

---
 tests/conntrackd/cthelper/expect.c |    3 ++-
 tests/conntrackd/cthelper/main.c   |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)
tests/conntrackd/cthelper/expect.c +2 -1
index c667293..d1d1d28 100644
@@ -25,7 +25,8 @@ cthelper_expect_init(struct nf_expect *exp, struct nf_conntrack *master,
 		  uint32_t class,
 		  union nfct_attr_grp_addr *saddr,
 		  union nfct_attr_grp_addr *daddr,
-		  uint8_t l4proto, uint16_t *sport, uint16_t *dport)
+		  uint8_t l4proto, uint16_t *sport, uint16_t *dport,
+		  uint32_t flags)
 {
 	struct nf_conntrack *expected, *mask;
 
tests/conntrackd/cthelper/main.c +2 -2
index f229c5d..7021f00 100755
@@ -119,10 +119,10 @@ cthelper_process_packet(const uint8_t *pkt, uint32_t pktlen,
 		ct->myct->ct = tmp;
 
 		if (pktb_mangled(pktb)) {
-			int i;
+			uint32_t i;
 			uint8_t *data = pktb_network_header(pktb);
 
-			printf("\e[1;31mmangled content: ", pktb_len(pktb));
+			printf("\e[1;31mmangled content: ");
 
 			for (i=0; i < pktb_len(pktb); i++)
 				printf("%c", data[i]);
Signature · 1 line
1.7.9.5
maintainer Applied
#1 lore raw
Quoted 1 line · Ansis Atteka

This patch fixes few compile warnings and errors.

Applied, thanks Ansis.