diff --git a/src/auth.c b/src/auth.c index a9ebd3fc..7f47b5e4 100644 --- a/src/auth.c +++ b/src/auth.c @@ -580,7 +580,7 @@ void auth_stream_end (mount_proxy *mountinfo, const char *mount) /* these are called at server start and termination */ -void auth_initialise () +void auth_initialise (void) { clients_to_auth = NULL; auth_pending_count = 0; @@ -589,7 +589,7 @@ void auth_initialise () auth_thread = thread_create ("auth thread", auth_run_thread, NULL, THREAD_ATTACHED); } -void auth_shutdown () +void auth_shutdown (void) { if (auth_thread) { diff --git a/src/auth.h b/src/auth.h index 0e023b67..12c6916a 100644 --- a/src/auth.h +++ b/src/auth.h @@ -77,8 +77,8 @@ typedef struct auth_tag void add_client (const char *mount, client_t *client); int release_client (client_t *client); -void auth_initialise (); -void auth_shutdown (); +void auth_initialise (void); +void auth_shutdown (void); auth_t *auth_get_authenticator (xmlNodePtr node); void auth_release (auth_t *authenticator); diff --git a/src/cfgfile.c b/src/cfgfile.c index 7e761f1b..fdaccacd 100644 --- a/src/cfgfile.c +++ b/src/cfgfile.c @@ -86,12 +86,12 @@ static void _parse_listen_socket(xmlDocPtr doc, xmlNodePtr node, ice_config_t *c); static void _add_server(xmlDocPtr doc, xmlNodePtr node, ice_config_t *c); -static void create_locks() { +static void create_locks(void) { thread_mutex_create(&_locks.relay_lock); thread_rwlock_create(&_locks.config_lock); } -static void release_locks() { +static void release_locks(void) { thread_mutex_destroy(&_locks.relay_lock); thread_rwlock_destroy(&_locks.config_lock); } diff --git a/src/connection.c b/src/connection.c index 62557695..f5924ffd 100644 --- a/src/connection.c +++ b/src/connection.c @@ -313,7 +313,7 @@ static client_queue_t *_get_connection(void) /* run along queue checking for any data that has come in or a timeout */ -static void process_request_queue () +static void process_request_queue (void) { client_queue_t **node_ref = (client_queue_t **)&_req_queue; ice_config_t *config = config_get_config (); diff --git a/src/fserve.c b/src/fserve.c index c80c0728..0a8cffee 100644 --- a/src/fserve.c +++ b/src/fserve.c @@ -201,7 +201,7 @@ int fserve_client_waiting (void) } #endif -static void wait_for_fds() { +static void wait_for_fds(void) { fserve_t *fclient; while (run_fserv) diff --git a/src/main.c b/src/main.c index 401f3059..4ea1157a 100644 --- a/src/main.c +++ b/src/main.c @@ -75,7 +75,7 @@ static void _fatal_error(char *perr) #endif } -static void _print_usage() +static void _print_usage(void) { printf(ICECAST_VERSION_STRING "\n\n"); printf("usage: icecast [-b -v] -c \n"); diff --git a/src/stats.c b/src/stats.c index a7a2118f..98591f75 100644 --- a/src/stats.c +++ b/src/stats.c @@ -119,7 +119,7 @@ static void queue_global_event (stats_event_t *event) thread_mutex_unlock(&_global_event_mutex); } -void stats_initialize() +void stats_initialize(void) { _event_listeners = NULL; @@ -139,7 +139,7 @@ void stats_initialize() _stats_thread_id = thread_create("Stats Thread", _stats_thread, NULL, THREAD_ATTACHED); } -void stats_shutdown() +void stats_shutdown(void) { int n; @@ -182,7 +182,7 @@ void stats_shutdown() } } -stats_t *stats_get_stats() +stats_t *stats_get_stats(void) { /* lock global stats diff --git a/src/stats.h b/src/stats.h index 45ca5920..eedb550a 100644 --- a/src/stats.h +++ b/src/stats.h @@ -70,10 +70,10 @@ typedef struct _stats_tag } stats_t; -void stats_initialize(); -void stats_shutdown(); +void stats_initialize(void); +void stats_shutdown(void); -stats_t *stats_get_stats(); +stats_t *stats_get_stats(void); void stats_event(const char *source, const char *name, const char *value); void stats_event_args(const char *source, char *name, char *format, ...); diff --git a/src/xslt.c b/src/xslt.c index 4dcfecb7..3ba80d7a 100644 --- a/src/xslt.c +++ b/src/xslt.c @@ -94,7 +94,7 @@ int xsltSaveResultToString(xmlChar **doc_txt_ptr, int * doc_txt_len, xmlDocPtr r static stylesheet_cache_t cache[CACHESIZE]; static mutex_t xsltlock; -void xslt_initialize() +void xslt_initialize(void) { xmlSubstituteEntitiesDefault(1); xmlLoadExtDtdDefaultValue = 1; @@ -105,7 +105,7 @@ void xslt_initialize() xmlLoadExtDtdDefaultValue = 1; } -void xslt_shutdown() { +void xslt_shutdown(void) { int i; for(i=0; i < CACHESIZE; i++) { @@ -119,7 +119,7 @@ void xslt_shutdown() { xsltCleanupGlobals(); } -static int evict_cache_entry() { +static int evict_cache_entry(void) { int i, age=0, oldest=0; for(i=0; i < CACHESIZE; i++) { diff --git a/src/xslt.h b/src/xslt.h index a88938a4..6fe54e71 100644 --- a/src/xslt.h +++ b/src/xslt.h @@ -35,6 +35,6 @@ void xslt_transform(xmlDocPtr doc, const char *xslfilename, client_t *client); -void xslt_initialize(); -void xslt_shutdown(); +void xslt_initialize(void); +void xslt_shutdown(void); diff --git a/src/yp.c b/src/yp.c index e42eb124..de4f36af 100644 --- a/src/yp.c +++ b/src/yp.c @@ -265,7 +265,7 @@ void yp_recheck_config (ice_config_t *config) } -void yp_initialize() +void yp_initialize(void) { ice_config_t *config = config_get_config(); thread_rwlock_create (&yp_lock); @@ -562,7 +562,7 @@ static ypdata_t *create_yp_entry (const char *mount) /* Check for changes in the YP servers configured */ -static void check_servers () +static void check_servers (void) { struct yp_server *server = (struct yp_server *)active_yps, **server_p = (struct yp_server **)&active_yps; @@ -916,7 +916,7 @@ void yp_touch (const char *mount) } -void yp_shutdown () +void yp_shutdown (void) { yp_running = 0; yp_update = 1; diff --git a/src/yp.h b/src/yp.h index 896b5bbf..6b2eb187 100644 --- a/src/yp.h +++ b/src/yp.h @@ -32,8 +32,8 @@ void yp_add (const char *mount); void yp_remove (const char *mount); void yp_touch (const char *mount); void yp_recheck_config (ice_config_t *config); -void yp_initialize(); -void yp_shutdown(); +void yp_initialize(void); +void yp_shutdown(void); #else