summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-04-25 17:56:04 (GMT)
committerhobbs <hobbs>2000-04-25 17:56:04 (GMT)
commit0018f250fba0a1b3259c6ba852355a4bc1bd27ca (patch)
tree70fa56e5de1ab19895450a2f4d66a4830b421d22
parent28cb331cefb32cefa61be49fd01544c9f046233a (diff)
downloadtcl-0018f250fba0a1b3259c6ba852355a4bc1bd27ca.zip
tcl-0018f250fba0a1b3259c6ba852355a4bc1bd27ca.tar.gz
tcl-0018f250fba0a1b3259c6ba852355a4bc1bd27ca.tar.bz2
* unix/tclUnixThrd.c: removed {}s around PTHREAD_MUTEX_INITIALIZER
[Bug: 5254]
-rw-r--r--unix/tclUnixThrd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index 16e2315..2e8e8a4 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -26,21 +26,21 @@
* initialize the mutex.
*/
-static pthread_mutex_t masterLock = {PTHREAD_MUTEX_INITIALIZER};
+static pthread_mutex_t masterLock = PTHREAD_MUTEX_INITIALIZER;
/*
* initLock is used to serialize initialization and finalization
* of Tcl. It cannot use any dyamically allocated storage.
*/
-static pthread_mutex_t initLock = {PTHREAD_MUTEX_INITIALIZER};
+static pthread_mutex_t initLock = PTHREAD_MUTEX_INITIALIZER;
/*
* allocLock is used by Tcl's version of malloc for synchronization.
* For obvious reasons, cannot use any dyamically allocated storage.
*/
-static pthread_mutex_t allocLock = {PTHREAD_MUTEX_INITIALIZER};
+static pthread_mutex_t allocLock = PTHREAD_MUTEX_INITIALIZER;
static pthread_mutex_t *allocLockPtr = &allocLock;
/*