X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/0b4af330ced1003dcac7d169d0012ecf5c79e29f..6aaf8d8c1041b524d985bf09b9a3f5e371cf8ac2:/main.c diff --git a/main.c b/main.c index be8d0c2a..f723da4e 100644 --- a/main.c +++ b/main.c @@ -716,12 +716,6 @@ static int start_client(int argc, char *argv[]) p = find_colon(argv[argc-1]); if (!p) { local_server = 1; - /* - * disable "rsync algorithm" when both sides local, - * except when creating a batch update - */ - if (!write_batch && whole_file == -1) - whole_file = 1; } else if (p[1] == ':') { *p = 0; return start_socket_client(argv[argc-1], p+2, argc-1, argv); @@ -786,17 +780,17 @@ static int start_client(int argc, char *argv[]) } -static RETSIGTYPE sigusr1_handler(int val) { +static RETSIGTYPE sigusr1_handler(int UNUSED(val)) { exit_cleanup(RERR_SIGNAL); } -static RETSIGTYPE sigusr2_handler(int val) { +static RETSIGTYPE sigusr2_handler(int UNUSED(val)) { extern int log_got_error; if (log_got_error) _exit(RERR_PARTIAL); _exit(0); } -static RETSIGTYPE sigchld_handler(int val) { +static RETSIGTYPE sigchld_handler(int UNUSED(val)) { #ifdef WNOHANG while (waitpid(-1, NULL, WNOHANG) > 0) ; #endif