summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-05-26 20:58:16 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-05-26 20:58:16 +0200
commit18efbc802479ce042378dc0cccc7577e1c6afa41 (patch)
treef78204f3ae2e3fcc9d19fdcf5b6aee1abf829b22 /src
parent318756cd4df1cb7760bf32d3e1d3756c41d1858b (diff)
downloadconntrack-tools-18efbc802479ce042378dc0cccc7577e1c6afa41.tar.gz
conntrack-tools-18efbc802479ce042378dc0cccc7577e1c6afa41.zip
nfct: fix compilation of timeout extension
nfct-extensions/timeout.c: In function ‘nfct_timeout_cb’: nfct-extensions/timeout.c:99:2: warning: passing argument 4 of ‘nfct_timeout_snprintf’ makes integer from pointer without a cast [enabled by default] /usr/include/libnetfilter_cttimeout/libnetfilter_cttimeout.h:114:5: note: expected ‘unsigned int’ but argument is of type ‘struct nfct_timeout *’ Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/nfct-extensions/timeout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nfct-extensions/timeout.c b/src/nfct-extensions/timeout.c
index a1a5c52..5b32023 100644
--- a/src/nfct-extensions/timeout.c
+++ b/src/nfct-extensions/timeout.c
@@ -96,7 +96,7 @@ static int nfct_timeout_cb(const struct nlmsghdr *nlh, void *data)
goto err_free;
}
- nfct_timeout_snprintf(buf, sizeof(buf), t, 0);
+ nfct_timeout_snprintf(buf, sizeof(buf), t, NFCT_TIMEOUT_O_DEFAULT, 0);
printf("%s\n", buf);
err_free: