summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvas.c
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2005-02-07 10:32:46 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2005-02-07 10:32:46 (GMT)
commit138cb2cb4d73d2278275f863b1d6ba4cb1fc0b82 (patch)
tree3d8d06c6ad728fac99dfc170824963aba5bc84b5 /generic/tkCanvas.c
parentda5229eee135bdeb27dfe2547245d785f63fc124 (diff)
downloadtk-138cb2cb4d73d2278275f863b1d6ba4cb1fc0b82.zip
tk-138cb2cb4d73d2278275f863b1d6ba4cb1fc0b82.tar.gz
tk-138cb2cb4d73d2278275f863b1d6ba4cb1fc0b82.tar.bz2
Fix silly mistake. :^}
Diffstat (limited to 'generic/tkCanvas.c')
-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;
}