]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Add "void" to some function definitions so that all declarations in proto.h
authorJos Backus <jos@samba.org>
Tue, 24 Dec 2002 07:42:04 +0000 (07:42 +0000)
committerJos Backus <jos@samba.org>
Tue, 24 Dec 2002 07:42:04 +0000 (07:42 +0000)
have full parameter lists. This helps unbreaking compilation on SCO UNIXWare.

Submitted by: Stephen Friedl

batch.c
flist.c
log.c

diff --git a/batch.c b/batch.c
index 8c78ab6a57883d19f8c9a9f83d730ee57ab211b5..d3f6523386f1ad21723096d34e6ec21aa17153e2 100644 (file)
--- a/batch.c
+++ b/batch.c
@@ -264,7 +264,7 @@ int read_batch_flist_file(char *buff, int len)
        return bytes_read;
 }
 
-unsigned char read_batch_flags()
+unsigned char read_batch_flags(void)
 {
        int flags;
 
diff --git a/flist.c b/flist.c
index 922db461ed02216864e97594fd16856f2a6557e7..93148e6e179a5ff31fa145d6cbd4a0d80b32fe56 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -1197,7 +1197,7 @@ void free_file(struct file_struct *file)
 /*
  * allocate a new file list
  */
-struct file_list *flist_new()
+struct file_list *flist_new(void)
 {
        struct file_list *flist;
 
diff --git a/log.c b/log.c
index ade21ebd702b947f252b25f7e9fee05f8e5f013d..721188a7a609068ba1f9690872143edb09f23511 100644 (file)
--- a/log.c
+++ b/log.c
@@ -184,7 +184,7 @@ void log_init(void)
 #endif
 }
 
-void log_open()
+void log_open(void)
 {
        if (logfname && !logfile) {
                extern int orig_umask;
@@ -194,7 +194,7 @@ void log_open()
        }
 }
 
-void log_close()
+void log_close(void)
 {
        if (logfile) {
                fclose(logfile);