diff options
author | Harsha Sharma <harshasharmaiitr@gmail.com> | 2017-12-29 12:19:39 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-12-30 21:59:28 +0100 |
commit | fcebbe16c9a7abd0d516b290e3ed5e4a757f9b73 (patch) | |
tree | 77a622f04380e5b7bd40aa9226642e36d25b3c6f /tests/nft-expr_lookup-test.c | |
parent | 7966020bdf0135b7d5c4c792883875019ae2a906 (diff) |
tests: change char * pointer to constant (const char *)
As the parameter for function is pointer to constant, change it to
constant. This fix gcc compilation warning in libnftnl with make check.
Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/nft-expr_lookup-test.c')
-rw-r--r-- | tests/nft-expr_lookup-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/nft-expr_lookup-test.c b/tests/nft-expr_lookup-test.c index 28c1204..9e6e051 100644 --- a/tests/nft-expr_lookup-test.c +++ b/tests/nft-expr_lookup-test.c @@ -59,7 +59,7 @@ int main(int argc, char *argv[]) char buf[4096]; struct nftnl_expr_iter *iter_a, *iter_b; struct nftnl_expr *rule_a, *rule_b; - char *lookup_set = "test_set_01243"; + const char *lookup_set = "test_set_01243"; a = nftnl_rule_alloc(); b = nftnl_rule_alloc(); |