* [PATCH] tests: conntrackd: fix compile errors and warnings
@ 2012-08-24 1:27 Ansis Atteka
2012-08-24 9:58 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Ansis Atteka @ 2012-08-24 1:27 UTC (permalink / raw)
To: netfilter-devel; +Cc: Ansis Atteka
This patch fixes few compile warnings and errors.
Signed-off-by: Ansis Atteka <aatteka@nicira.com>
---
tests/conntrackd/cthelper/expect.c | 3 ++-
tests/conntrackd/cthelper/main.c | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/conntrackd/cthelper/expect.c b/tests/conntrackd/cthelper/expect.c
index c667293..d1d1d28 100644
--- a/tests/conntrackd/cthelper/expect.c
+++ b/tests/conntrackd/cthelper/expect.c
@@ -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;
diff --git a/tests/conntrackd/cthelper/main.c b/tests/conntrackd/cthelper/main.c
index f229c5d..7021f00 100755
--- a/tests/conntrackd/cthelper/main.c
+++ b/tests/conntrackd/cthelper/main.c
@@ -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]);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tests: conntrackd: fix compile errors and warnings
2012-08-24 1:27 [PATCH] tests: conntrackd: fix compile errors and warnings Ansis Atteka
@ 2012-08-24 9:58 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2012-08-24 9:58 UTC (permalink / raw)
To: Ansis Atteka; +Cc: netfilter-devel
On Thu, Aug 23, 2012 at 06:27:22PM -0700, Ansis Atteka wrote:
> This patch fixes few compile warnings and errors.
Applied, thanks Ansis.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-24 9:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-24 1:27 [PATCH] tests: conntrackd: fix compile errors and warnings Ansis Atteka
2012-08-24 9:58 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).