summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-03-27 11:54:17 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-03-27 11:54:17 +0200
commit2204eb2d6eecd06acae471eb6bd682eab904db90 (patch)
treeb39597c61d72429c22f24b9cc3f5b6fb1133bc14
parent9d5d2b85c2f37b0f734d6a1a4b3ea2e36ead6519 (diff)
examples: fix nfacct-get examplelibnetfilter_acct-1.0.0
I forgot to adapt it to use the new nfacct_snprintf API. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--examples/nfacct-get.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/nfacct-get.c b/examples/nfacct-get.c
index cc5c65d..b542b08 100644
--- a/examples/nfacct-get.c
+++ b/examples/nfacct-get.c
@@ -21,7 +21,8 @@ static int nfacct_cb(const struct nlmsghdr *nlh, void *data)
goto err_free;
}
- nfacct_snprintf(buf, sizeof(buf), nfacct, NFACCT_SNPRINTF_F_FULL);
+ nfacct_snprintf(buf, sizeof(buf), nfacct,
+ NFACCT_SNPRINTF_T_PLAIN, NFACCT_SNPRINTF_F_FULL);
printf("%s\n", buf);
err_free: