aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-06-16 10:00:41 +0200
committerBjörn-Egil Dahlberg <[email protected]>2015-06-17 16:06:54 +0200
commitdaa9b4d4522f397e418610cf7746441c684bc44a (patch)
treef4133a13519c355fb1c9bf17effb2478a95c6a05 /erts
parentd57bf76c50e5193312babc39ea5324e9f549a4b8 (diff)
downloadotp-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.c10
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)