diff options
author | Phil Sutter <phil@nwl.cc> | 2022-01-07 16:26:30 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-11-15 17:02:09 +0100 |
commit | 66b4a68de2212f3f872dc1b0e36aa8e76c70659d (patch) | |
tree | ae210c9f9b89ed1d747d63b547e8f683d4bc83d5 /extensions/libebt_among.c | |
parent | be8c6056040848b019e76e8b578598b35bae2655 (diff) |
Drop extra newline from xtables_error() calls
Since basic_exit_err() appends a newline to the message itself, drop
explicit ones.
While being at it, fix indentation and join texts split over multiple
lines.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'extensions/libebt_among.c')
-rw-r--r-- | extensions/libebt_among.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libebt_among.c b/extensions/libebt_among.c index 1eab2019..a80fb804 100644 --- a/extensions/libebt_among.c +++ b/extensions/libebt_among.c @@ -68,12 +68,12 @@ parse_nft_among_pair(char *buf, struct nft_among_pair *pair, bool have_ip) if (!inet_pton(AF_INET, sep + 1, &pair->in)) xtables_error(PARAMETER_PROBLEM, - "Invalid IP address '%s'\n", sep + 1); + "Invalid IP address '%s'", sep + 1); } ether = ether_aton(buf); if (!ether) xtables_error(PARAMETER_PROBLEM, - "Invalid MAC address '%s'\n", buf); + "Invalid MAC address '%s'", buf); memcpy(&pair->ether, ether, sizeof(*ether)); } |