summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-02-07 10:32:46 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-02-07 10:32:46 (GMT)
commitc51a1d8dd799ba5fe3b452cc67462c8fc93ed3eb (patch)
tree3d8d06c6ad728fac99dfc170824963aba5bc84b5 /generic
parent03296eb004fd26667cec8b99d42650b71b45f0bc (diff)
downloadtk-c51a1d8dd799ba5fe3b452cc67462c8fc93ed3eb.zip
tk-c51a1d8dd799ba5fe3b452cc67462c8fc93ed3eb.tar.gz
tk-c51a1d8dd799ba5fe3b452cc67462c8fc93ed3eb.tar.bz2
Fix silly mistake. :^}
Diffstat (limited to 'generic')
-rw-r--r--generic/tkCanvas.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c
index d3ec308..65f6816 100644
--- a/generic/tkCanvas.c
+++ b/generic/tkCanvas.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkCanvas.c,v 1.33 2005/02/03 13:46:43 dkf Exp $
+ * RCS: @(#) $Id: tkCanvas.c,v 1.34 2005/02/07 10:33:09 dkf Exp $
*/
/* #define USE_OLD_TAG_SEARCH 1 */
@@ -953,12 +953,12 @@ CanvasWidgetCmd(clientData, interp, objc, objv)
}
arg = Tcl_GetStringFromObj(objv[2], (int *) &length);
c = arg[0];
- Tcl_MutexLock(&typeListPtr);
+ Tcl_MutexLock(&typeListMutex);
for (typePtr = typeList; typePtr != NULL; typePtr = typePtr->nextPtr) {
if ((c == typePtr->name[0])
&& (strncmp(arg, typePtr->name, length) == 0)) {
if (matchPtr != NULL) {
- Tcl_MutexUnlock(&typeListPtr);
+ Tcl_MutexUnlock(&typeListMutex);
badType:
Tcl_AppendResult(interp,
"unknown or ambiguous item type \"",
@@ -974,7 +974,7 @@ CanvasWidgetCmd(clientData, interp, objc, objv)
* the matched item type that are potentially modified by
* other threads.
*/
- Tcl_MutexUnlock(&typeListPtr);
+ Tcl_MutexUnlock(&typeListMutex);
if (matchPtr == NULL) {
goto badType;
}