X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/34758d5c1565188352c6a58a9ae223e44db7e46d..0f0ea7f779623fc4cad2bbf8c955b32d37588127:/main.c diff --git a/main.c b/main.c index a54d67f7..74d205f0 100644 --- a/main.c +++ b/main.c @@ -280,7 +280,8 @@ static char *get_local_name(struct file_list *flist,char *name) return name; if (do_mkdir(name,0777 & ~orig_umask) != 0) { - rprintf(FERROR,"mkdir %s : %s (1)\n",name,strerror(errno)); + rprintf(FERROR, RSYNC_NAME ": mkdir %s: %s\n", + name, strerror(errno)); exit_cleanup(RERR_FILEIO); } else { if (verbose > 0) @@ -288,8 +289,8 @@ static char *get_local_name(struct file_list *flist,char *name) } if (!push_dir(name, 0)) { - rprintf(FERROR,"push_dir %s : %s (2)\n", - name,strerror(errno)); + rprintf(FERROR, RSYNC_NAME ": push_dir %s: %s\n", + name, strerror(errno)); exit_cleanup(RERR_FILESELECT); } @@ -643,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[]) { @@ -782,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