]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Use nftnl_*_set_str() functions
authorPhil Sutter <phil@nwl.cc>
Tue, 3 Sep 2019 15:46:16 +0000 (17:46 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 23 Sep 2019 11:04:27 +0000 (13:04 +0200)
commit1d05b989b3ec774c52cdb1fee41d8ee5f382b756
tree32f956fd17e21223dd87a08fb0ef92db5938efd6
parentb29068b49d32a0a8667409e69de628400593588c
nft: Use nftnl_*_set_str() functions

Although it doesn't make a difference in practice, they are the correct
API functions to use when assigning string attributes.

While doing so, also drop the needless casts to non-const.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c