X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/9935066b704bcf2e6e48dac85cb1b4047d8f439d..1e82e2cea6b34a658a91257d53aabc46f5791a89:/receiver.c diff --git a/receiver.c b/receiver.c index ca6bf23f..da383be7 100644 --- a/receiver.c +++ b/receiver.c @@ -69,9 +69,8 @@ static int is_backup_file(char *fn) } -/* this deletes any files on the receiving side that are not present - * on the sending side. For version 1.6.4 I have changed the behaviour - * to match more closely what most people seem to expect of this option */ +/* This deletes any files on the receiving side that are not present + * on the sending side. */ void delete_files(struct file_list *flist) { struct file_list *local_file_list; @@ -90,7 +89,7 @@ void delete_files(struct file_list *flist) return; } - for (j = 0;j < flist->count; j++) { + for (j = 0; j < flist->count; j++) { if (!(flist->files[j]->flags & FLAG_TOP_DIR) || !S_ISDIR(flist->files[j]->mode)) continue; @@ -305,8 +304,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name) rprintf(FINFO,"recv_files(%d) starting\n",flist->count); } - if (flist->hlink_pool) - { + if (flist->hlink_pool) { pool_destroy(flist->hlink_pool); flist->hlink_pool = NULL; } @@ -362,7 +360,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name) /* open the file */ fd1 = do_open(fnamecmp, O_RDONLY, 0); - if ((fd1 == -1) && (compare_dest != NULL)) { + if (fd1 == -1 && compare_dest != NULL) { /* try the file at compare_dest instead */ pathjoin(fnamecmpbuf, sizeof fnamecmpbuf, compare_dest, fname);