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/mutex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/mutex.c') 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) ); -- cgit v1.2.3-70-g09d2