From fa8911fb884537221b0993dff88df6013e5654e0 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Mon, 5 Aug 2013 14:01:39 +0200 Subject: chain: fix compilation warning due to unused nft_str2hooknum() If neither XML_PARSING nor JSON_PARSING are defined (libnftables configured without XML/JSON parsing support), a warning is produced due to unused nft_str2hooknum() function. Signed-off-by: Arturo Borrero Gonzalez --- src/chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/chain.c') diff --git a/src/chain.c b/src/chain.c index 1964353..4f07bf8 100644 --- a/src/chain.c +++ b/src/chain.c @@ -468,7 +468,7 @@ int nft_chain_nlmsg_parse(const struct nlmsghdr *nlh, struct nft_chain *c) } EXPORT_SYMBOL(nft_chain_nlmsg_parse); -static int nft_str2hooknum(const char *hook) +static inline int nft_str2hooknum(const char *hook) { int hooknum; -- cgit v1.2.3