diff options
author | Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> | 2013-08-05 14:01:39 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-08-05 14:36:34 +0200 |
commit | fa8911fb884537221b0993dff88df6013e5654e0 (patch) | |
tree | aa1474656838f68286244d2f23227a2c36f0090e /src | |
parent | b3e73fda10db2b1aa2ef26690bf285839e4ea22a (diff) |
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 <arturo.borrero.glez@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/chain.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |