summaryrefslogtreecommitdiff
path: root/src/common/thread.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-07-10 18:24:50 +0200
committerHaru <haru@dotalux.com>2014-07-11 08:48:11 +0200
commit46aa529396625efebdd637f540e9e104059866b6 (patch)
tree00bfc36e90ac8a14cb7ed3a699d6b0c056eb1a4f /src/common/thread.c
parentbe75198abbd8420d25e67ee5d714422cf6c488db (diff)
downloadhercules-46aa529396625efebdd637f540e9e104059866b6.tar.gz
hercules-46aa529396625efebdd637f540e9e104059866b6.tar.bz2
hercules-46aa529396625efebdd637f540e9e104059866b6.tar.xz
hercules-46aa529396625efebdd637f540e9e104059866b6.zip
Explicitly specify 'void' when a function expects no arguments
- See CERT DCL20-C. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/thread.c')
-rw-r--r--src/common/thread.c10
1 files changed, 5 insertions, 5 deletions
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