summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--mutex.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 724e0be..1a14b49 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
1998-10-03 Ben Elliston <bje@cygnus.com>
+ * mutex.c (pthread_mutex_init): Correct function signature.
+
* attr.c (pthread_attr_init): Only zero out the `sigmask' member
if we have the sigset_t type.
diff --git a/mutex.c b/mutex.c
index d53c356..aaf4ff4 100644
--- a/mutex.c
+++ b/mutex.c
@@ -11,7 +11,7 @@
#include "implement.h"
int
-pthread_mutex_init(pthread_mutex_t *mutex, pthread_mutexattr_t *attr)
+pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr)
{
if (mutex == NULL)
{