summaryrefslogtreecommitdiff
path: root/pipe.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-07-14 16:41:10 +0000
committerWayne Davison <wayned@samba.org>2004-07-14 16:41:10 +0000
commit3896bca4d8b407a54471337692e68d0658e0efa7 (patch)
tree5817d04737267e49dafbb1284ae0e624b0263198 /pipe.c
parent9774cc334494e12bd35197e7e1ab9fd6b0ef3023 (diff)
downloadrsync-3896bca4d8b407a54471337692e68d0658e0efa7.tar.gz
rsync-3896bca4d8b407a54471337692e68d0658e0efa7.tar.bz2
rsync-3896bca4d8b407a54471337692e68d0658e0efa7.zip
Tweaked some single-line ifs.
Diffstat (limited to 'pipe.c')
-rw-r--r--pipe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pipe.c b/pipe.c
index fd3487aa..3a45dd11 100644
--- a/pipe.c
+++ b/pipe.c
@@ -127,8 +127,10 @@ pid_t local_child(int argc, char **argv,int *f_in,int *f_out,
rsyserr(FERROR, errno, "Failed to dup/close");
exit_cleanup(RERR_IPC);
}
- if (to_child_pipe[0] != STDIN_FILENO) close(to_child_pipe[0]);
- if (from_child_pipe[1] != STDOUT_FILENO) close(from_child_pipe[1]);
+ if (to_child_pipe[0] != STDIN_FILENO)
+ close(to_child_pipe[0]);
+ if (from_child_pipe[1] != STDOUT_FILENO)
+ close(from_child_pipe[1]);
child_main(argc, argv);
}