Patch from Jos Backus -- Fix breakage from dev_t to DEV64_T in batch
[rsync/rsync.git] / util.c
diff --git a/util.c b/util.c
index e6acf50..5554d00 100644 (file)
--- a/util.c
+++ b/util.c
@@ -173,10 +173,7 @@ pid_t local_child(int argc, char **argv,int *f_in,int *f_out)
                extern int am_sender;
                extern int am_server;
 
-               if (read_batch)
-                   am_sender = 0;
-               else
-                   am_sender = !am_sender;
+               am_sender = read_batch ? 0 : !am_sender;
                am_server = 1;          
 
                if (dup2(to_child_pipe[0], STDIN_FILENO) < 0 ||