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:
4056481
)
Some trivial format tweaks.
author
Wayne Davison
<wayned@samba.org>
Sun, 20 Jun 2004 21:48:06 +0000
(21:48 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 20 Jun 2004 21:48:06 +0000
(21:48 +0000)
main.c
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
9aceed2
..
d6eb8d8
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-301,7
+301,8
@@
static pid_t do_cmd(char *cmd, char *machine, char *user, char *path,
ret = piped_child(args,f_in,f_out);
}
ret = piped_child(args,f_in,f_out);
}
- if (dir) free(dir);
+ if (dir)
+ free(dir);
return ret;
return ret;
@@
-443,7
+444,8
@@
static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
if ((pid=do_fork()) == 0) {
close(error_pipe[0]);
if ((pid=do_fork()) == 0) {
close(error_pipe[0]);
- if (f_in != f_out) close(f_out);
+ if (f_in != f_out)
+ close(f_out);
/* we can't let two processes write to the socket at one time */
io_multiplexing_close();
/* we can't let two processes write to the socket at one time */
io_multiplexing_close();
@@
-467,7
+469,8
@@
static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
am_generator = 1;
close(error_pipe[1]);
am_generator = 1;
close(error_pipe[1]);
- if (f_in != f_out) close(f_in);
+ if (f_in != f_out)
+ close(f_in);
io_start_buffering_out(f_out);
io_start_buffering_out(f_out);
@@
-546,7
+549,8
@@
static void do_server_recv(int f_in, int f_out, int argc,char *argv[])
if (argc > 0) {
if (strcmp(dir,".")) {
argv[0] += strlen(dir);
if (argc > 0) {
if (strcmp(dir,".")) {
argv[0] += strlen(dir);
- if (argv[0][0] == '/') argv[0]++;
+ if (argv[0][0] == '/')
+ argv[0]++;
}
local_name = get_local_name(flist,argv[0]);
}
}
local_name = get_local_name(flist,argv[0]);
}