diff options
author | Haru <haru@dotalux.com> | 2014-07-10 18:24:50 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-07-11 08:48:11 +0200 |
commit | 46aa529396625efebdd637f540e9e104059866b6 (patch) | |
tree | 00bfc36e90ac8a14cb7ed3a699d6b0c056eb1a4f /src/common/thread.h | |
parent | be75198abbd8420d25e67ee5d714422cf6c488db (diff) | |
download | hercules-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.h')
-rw-r--r-- | src/common/thread.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/thread.h b/src/common/thread.h index f781cfbd0..c7582366d 100644 --- a/src/common/thread.h +++ b/src/common/thread.h @@ -58,7 +58,7 @@ void rathread_destroy(rAthread *handle); * * @return not NULL if success */ -rAthread *rathread_self(); +rAthread *rathread_self(void); /** @@ -69,7 +69,7 @@ rAthread *rathread_self(); * * @return -1 when fails, otherwise >= 0 */ -int rathread_get_tid(); +int rathread_get_tid(void); /** @@ -107,12 +107,12 @@ RATHREAD_PRIO rathread_prio_get(rAthread *handle); * it just allows the OS to spent the remaining time * of the slice to another thread. */ -void rathread_yield(); +void rathread_yield(void); -void rathread_init(); -void rathread_final(); +void rathread_init(void); +void rathread_final(void); #endif /* COMMON_THREAD_H */ |