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 8c78ab6..d3f6523 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 922db46..93148e6 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 ade21eb..721188a 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);