X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/b84ba8967a591b52abda755f809842e3bcd74f98..6b2d24de2c672476ae2591d28b82ff747d42a101:/main.c diff --git a/main.c b/main.c index 6213678f..74d205f0 100644 --- a/main.c +++ b/main.c @@ -644,6 +644,9 @@ static int copy_argv (char *argv[]) * Start a client for either type of remote connection. Work out * whether the arguments request a remote shell or rsyncd connection, * and call the appropriate connection function, then run_client. + * + * Calls either start_socket_client (for sockets) or do_cmd and + * client_run (for ssh). */ static int start_client(int argc, char *argv[]) { @@ -783,17 +786,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