From 2204eb2d6eecd06acae471eb6bd682eab904db90 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 27 Mar 2012 11:54:17 +0200 Subject: examples: fix nfacct-get example I forgot to adapt it to use the new nfacct_snprintf API. Signed-off-by: Pablo Neira Ayuso --- examples/nfacct-get.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') 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: -- cgit v1.2.3