]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: fix build with clang
authorEric Leblond <eric@regit.org>
Mon, 10 Jul 2017 22:32:53 +0000 (00:32 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 17 Jul 2017 15:20:34 +0000 (17:20 +0200)
commit0fdb267c521ea8717fcd5cd1ddf38fc5b0e9c725
treeadbb191eb1f13ceeacf586b501f316125a367102
parentf1e32ed35429a9890697efabca63dd9c88b55c2e
evaluate: fix build with clang

Building with a recent clang was failing due to the following error:

src/evaluate.c|450 col 45| error: initializer element is not constant
||    static const unsigned int max_tcpoptlen = 15 * 4 * BITS_PER_BYTE - tcphdrlen;
||                                              ^~

Signed-off-by: Eric Leblond <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/evaluate.c