summaryrefslogtreecommitdiff
path: root/mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'mutex.c')
-rw-r--r--mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mutex.c b/mutex.c
index b800512..1a037f0 100644
--- a/mutex.c
+++ b/mutex.c
@@ -223,7 +223,7 @@ pthread_mutexattr_init (pthread_mutexattr_t * attr)
pthread_mutexattr_t attr_result;
int result = 0;
- attr_result = calloc (1, sizeof (*attr_result));
+ attr_result = (pthread_mutexattr_t) calloc (1, sizeof (*attr_result));
result = (attr_result == NULL)
? ENOMEM