From 46aa529396625efebdd637f540e9e104059866b6 Mon Sep 17 00:00:00 2001 From: Haru Date: Thu, 10 Jul 2014 18:24:50 +0200 Subject: Explicitly specify 'void' when a function expects no arguments - See CERT DCL20-C. Signed-off-by: Haru --- src/common/thread.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/common/thread.c') diff --git a/src/common/thread.c b/src/common/thread.c index d680d0347..1d0285302 100644 --- a/src/common/thread.c +++ b/src/common/thread.c @@ -59,7 +59,7 @@ __thread int g_rathread_ID = -1; /// static struct rAthread l_threads[RA_THREADS_MAX]; -void rathread_init(){ +void rathread_init(void) { register unsigned int i; memset(&l_threads, 0x00, RA_THREADS_MAX * sizeof(struct rAthread) ); @@ -78,7 +78,7 @@ void rathread_init(){ -void rathread_final(){ +void rathread_final(void) { register unsigned int i; // Unterminated Threads Left? @@ -230,7 +230,7 @@ void rathread_destroy(rAthread *handle) { #endif }//end: rathread_destroy() -rAthread *rathread_self() { +rAthread *rathread_self(void) { #ifdef HAS_TLS rAthread *handle = &l_threads[g_rathread_ID]; @@ -259,7 +259,7 @@ rAthread *rathread_self() { }//end: rathread_self() -int rathread_get_tid(){ +int rathread_get_tid(void) { #ifdef HAS_TLS return g_rathread_ID; @@ -305,7 +305,7 @@ RATHREAD_PRIO rathread_prio_get(rAthread *handle) { }//end: rathread_prio_get() -void rathread_yield(){ +void rathread_yield(void) { #ifdef WIN32 SwitchToThread(); #else -- cgit v1.2.3-60-g2f50