Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9774cc3
)
Tweaked some single-line ifs.
author
Wayne Davison
<wayned@samba.org>
Wed, 14 Jul 2004 16:41:10 +0000
(16:41 +0000)
committer
Wayne Davison
<wayned@samba.org>
Wed, 14 Jul 2004 16:41:10 +0000
(16:41 +0000)
pipe.c
patch
|
blob
|
blame
|
history
diff --git
a/pipe.c
b/pipe.c
index
fd3487a
..
3a45dd1
100644
(file)
--- 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);
}