Commit ab1994ab authored by Michael Smith's avatar Michael Smith
Browse files

More function decl/defn fixes


svn path=/icecast/trunk/log/; revision=10616
parent 37a6bb18
...@@ -63,10 +63,10 @@ typedef struct log_tag ...@@ -63,10 +63,10 @@ typedef struct log_tag
static log_t loglist[LOG_MAXLOGS]; 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 _release_log_id(int log_id);
static void _lock_logger(); static void _lock_logger(void);
static void _unlock_logger(); static void _unlock_logger(void);
static int _log_open (int id, const char *file_timestamp) static int _log_open (int id, const char *file_timestamp)
...@@ -115,7 +115,7 @@ static int _log_open (int id, const char *file_timestamp) ...@@ -115,7 +115,7 @@ static int _log_open (int id, const char *file_timestamp)
return 1; return 1;
} }
void log_initialize() void log_initialize(void)
{ {
int i; int i;
...@@ -288,7 +288,7 @@ void log_close(int log_id) ...@@ -288,7 +288,7 @@ void log_close(int log_id)
_unlock_logger(); _unlock_logger();
} }
void log_shutdown() void log_shutdown(void)
{ {
/* destroy mutexes */ /* destroy mutexes */
#ifndef _WIN32 #ifndef _WIN32
...@@ -367,7 +367,7 @@ void log_write_direct(int log_id, const char *fmt, ...) ...@@ -367,7 +367,7 @@ void log_write_direct(int log_id, const char *fmt, ...)
fflush(loglist[log_id].logfile); fflush(loglist[log_id].logfile);
} }
static int _get_log_id() static int _get_log_id(void)
{ {
int i; int i;
int id = -1; int id = -1;
...@@ -399,7 +399,7 @@ static void _release_log_id(int log_id) ...@@ -399,7 +399,7 @@ static void _release_log_id(int log_id)
_unlock_logger(); _unlock_logger();
} }
static void _lock_logger() static void _lock_logger(void)
{ {
#ifndef _WIN32 #ifndef _WIN32
pthread_mutex_lock(&_logger_mutex); pthread_mutex_lock(&_logger_mutex);
...@@ -408,7 +408,7 @@ static void _lock_logger() ...@@ -408,7 +408,7 @@ static void _lock_logger()
#endif #endif
} }
static void _unlock_logger() static void _unlock_logger(void)
{ {
#ifndef _WIN32 #ifndef _WIN32
pthread_mutex_unlock(&_logger_mutex); pthread_mutex_unlock(&_logger_mutex);
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#define IO_BUFFER_TYPE _IOLBF #define IO_BUFFER_TYPE _IOLBF
#endif #endif
void log_initialize(); void log_initialize(void);
int log_open_file(FILE *file); int log_open_file(FILE *file);
int log_open(const char *filename); int log_open(const char *filename);
int log_open_with_buffer(const char *filename, int size); int log_open_with_buffer(const char *filename, int size);
...@@ -33,7 +33,7 @@ int log_set_archive_timestamp(int id, int value); ...@@ -33,7 +33,7 @@ int log_set_archive_timestamp(int id, int value);
void log_flush(int log_id); void log_flush(int log_id);
void log_reopen(int log_id); void log_reopen(int log_id);
void log_close(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, void log_write(int log_id, unsigned priority, const char *cat, const char *func,
const char *fmt, ...); const char *fmt, ...);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment