diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-06-16 10:00:41 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-06-17 16:06:54 +0200 |
commit | daa9b4d4522f397e418610cf7746441c684bc44a (patch) | |
tree | f4133a13519c355fb1c9bf17effb2478a95c6a05 /erts | |
parent | d57bf76c50e5193312babc39ea5324e9f549a4b8 (diff) | |
download | otp-daa9b4d4522f397e418610cf7746441c684bc44a.tar.gz otp-daa9b4d4522f397e418610cf7746441c684bc44a.tar.bz2 otp-daa9b4d4522f397e418610cf7746441c684bc44a.zip |
erts: Add brackets to statement
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/sys/unix/erl_child_setup.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/erts/emulator/sys/unix/erl_child_setup.c b/erts/emulator/sys/unix/erl_child_setup.c index d050748703..e1d2f66b7e 100644 --- a/erts/emulator/sys/unix/erl_child_setup.c +++ b/erts/emulator/sys/unix/erl_child_setup.c @@ -107,14 +107,16 @@ main(int argc, char *argv[]) if (from <= to) { int spfd = system_properties_fd(); for (i = from; i <= to; i++) { - if (i != spfd) + if (i != spfd) { (void) close(i); + } } } -#else - for (i = from; i <= to; i++) +#else /* !__ANDROID__ */ + for (i = from; i <= to; i++) { (void) close(i); -#endif + } +#endif /* HAVE_CLOSEFROM */ if (!(argv[CS_ARGV_WD_IX][0] == '.' && argv[CS_ARGV_WD_IX][1] == '\0') && chdir(argv[CS_ARGV_WD_IX]) < 0) |