summaryrefslogtreecommitdiff
path: root/src/common/mutex.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/mutex.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/mutex.c')
-rw-r--r--src/common/mutex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/mutex.c b/src/common/mutex.c
index 6707df7e6..ea3e0f8ce 100644
--- a/src/common/mutex.c
+++ b/src/common/mutex.c
@@ -50,7 +50,7 @@ struct racond{
//
-ramutex *ramutex_create() {
+ramutex *ramutex_create(void) {
struct ramutex *m;
m = (struct ramutex*)aMalloc( sizeof(struct ramutex) );
@@ -124,7 +124,7 @@ void ramutex_unlock(ramutex *m) {
// Implementation:
//
-racond *racond_create() {
+racond *racond_create(void) {
struct racond *c;
c = (struct racond*)aMalloc( sizeof(struct racond) );