Changed sig_int() to use a standard signal-handler prototype.
authorWayne Davison <wayned@samba.org>
Thu, 2 Feb 2006 02:39:40 +0000 (02:39 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 2 Feb 2006 02:39:40 +0000 (02:39 +0000)
rsync.c

diff --git a/rsync.c b/rsync.c
index 219a149..2387879 100644 (file)
--- a/rsync.c
+++ b/rsync.c
@@ -172,7 +172,7 @@ int set_file_attrs(char *fname, struct file_struct *file, STRUCT_STAT *st,
        return updated;
 }
 
-void sig_int(void)
+RETSIGTYPE sig_int(UNUSED(int val))
 {
        /* KLUGE: if the user hits Ctrl-C while ssh is prompting
         * for a password, then our cleanup's sending of a SIGUSR1