diff options
author | Phil Sutter <phil@nwl.cc> | 2021-11-05 17:45:48 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-11-23 15:01:23 +0100 |
commit | b5881e7f22d42a8b00acbdbab296b71572ddb903 (patch) | |
tree | a6b2d0229c82398d3960d86a221e462098666060 /iptables/nft.c | |
parent | 1189d830ea4fd269da87761d400ebabca02e1ef3 (diff) |
nft: Change whitespace printing in save_rule callback
This aligns whitespace printing with legacy iptables' print_rule4() in
order to prepare for further code-sharing.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft.c')
-rw-r--r-- | iptables/nft.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables/nft.c b/iptables/nft.c index 1d3f3a3d..282d417f 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -1513,10 +1513,10 @@ nft_rule_print_save(struct nft_handle *h, const struct nftnl_rule *r, /* print chain name */ switch(type) { case NFT_RULE_APPEND: - printf("-A %s ", chain); + printf("-A %s", chain); break; case NFT_RULE_DEL: - printf("-D %s ", chain); + printf("-D %s", chain); break; } |