diff options
author | Sami Kerola <kerolasa@iki.fi> | 2018-10-02 21:11:15 +0100 |
---|---|---|
committer | Sami Kerola <kerolasa@iki.fi> | 2018-10-03 20:28:46 +0100 |
commit | 98b49388caa77fad17735c5be21247646ba5cd83 (patch) | |
tree | 8134230ef342d03e5312c72b39e2561bd79c1df9 | |
parent | e982cde6ef2c26d82fcefc1b4bd07a533000e8dc (diff) | |
download | iputils-98b49388caa77fad17735c5be21247646ba5cd83.tar.gz |
ping: balance number of curly braces when #ifdef __linux__ is false
The ping could not have been compiled on anything but linux since commit
87dbb3a5db657d5eae6934707beaf0507980a1c3 (May 2015), that is part of the
four most recent releases.
Considering there are are no reported portability bugs it is perhaps fair to
say iputils project does not need to be extremely consevative what comes to
avoiding portability issues. Or to say the same slightly differently using
linux only api's, features, and expecting fairly up to date libraries is
probabliy fine.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
-rw-r--r-- | ping6_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ping6_common.c b/ping6_common.c index 6d074f7..3911d4b 100644 --- a/ping6_common.c +++ b/ping6_common.c @@ -740,6 +740,8 @@ int ping6_run(int argc, char **argv, struct addrinfo *ai, struct socket_st *sock */ error(0, errno, "setsockopt(RAW_CHECKSUM) failed - try to continue"); } +#else + { #endif /* |