[xiph-commits] r10616 - icecast/trunk/log

msmith at svn.xiph.org msmith at svn.xiph.org
Sat Dec 17 04:23:57 PST 2005


Author: msmith
Date: 2005-12-17 04:23:54 -0800 (Sat, 17 Dec 2005)
New Revision: 10616

Modified:
   icecast/trunk/log/log.c
   icecast/trunk/log/log.h
Log:
More function decl/defn fixes



Modified: icecast/trunk/log/log.c
===================================================================
--- icecast/trunk/log/log.c	2005-12-17 12:23:09 UTC (rev 10615)
+++ icecast/trunk/log/log.c	2005-12-17 12:23:54 UTC (rev 10616)
@@ -63,10 +63,10 @@
 
 static log_t loglist[LOG_MAXLOGS];
 
-static int _get_log_id();
+static int _get_log_id(void);
 static void _release_log_id(int log_id);
-static void _lock_logger();
-static void _unlock_logger();
+static void _lock_logger(void);
+static void _unlock_logger(void);
 
 
 static int _log_open (int id, const char *file_timestamp)
@@ -115,7 +115,7 @@
     return 1;
 }
 
-void log_initialize()
+void log_initialize(void)
 {
     int i;
 
@@ -288,7 +288,7 @@
     _unlock_logger();
 }
 
-void log_shutdown()
+void log_shutdown(void)
 {
     /* destroy mutexes */
 #ifndef _WIN32
@@ -367,7 +367,7 @@
     fflush(loglist[log_id].logfile);
 }
 
-static int _get_log_id()
+static int _get_log_id(void)
 {
     int i;
     int id = -1;
@@ -399,7 +399,7 @@
     _unlock_logger();
 }
 
-static void _lock_logger()
+static void _lock_logger(void)
 {
 #ifndef _WIN32
     pthread_mutex_lock(&_logger_mutex);
@@ -408,7 +408,7 @@
 #endif
 }
 
-static void _unlock_logger()
+static void _unlock_logger(void)
 {
 #ifndef _WIN32
     pthread_mutex_unlock(&_logger_mutex);

Modified: icecast/trunk/log/log.h
===================================================================
--- icecast/trunk/log/log.h	2005-12-17 12:23:09 UTC (rev 10615)
+++ icecast/trunk/log/log.h	2005-12-17 12:23:54 UTC (rev 10616)
@@ -22,7 +22,7 @@
 #define IO_BUFFER_TYPE _IOLBF
 #endif
 
-void log_initialize();
+void log_initialize(void);
 int log_open_file(FILE *file);
 int log_open(const char *filename);
 int log_open_with_buffer(const char *filename, int size);
@@ -33,7 +33,7 @@
 void log_flush(int log_id);
 void log_reopen(int log_id);
 void log_close(int log_id);
-void log_shutdown();
+void log_shutdown(void);
 
 void log_write(int log_id, unsigned priority, const char *cat, const char *func, 
         const char *fmt, ...);



More information about the commits mailing list