diff options
author | nijtmans <nijtmans> | 2010-06-21 11:23:23 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-06-21 11:23:23 (GMT) |
commit | 7904f2c09aac76e42beaba3829d4e0bc702b5828 (patch) | |
tree | 42f60b267df843560dce3dc715050416409a7ed3 /unix/tclUnixNotfy.c | |
parent | b959e69e2efe23f4904f8ebcb2c6638af32aeb4a (diff) | |
download | tcl-7904f2c09aac76e42beaba3829d4e0bc702b5828.zip tcl-7904f2c09aac76e42beaba3829d4e0bc702b5828.tar.gz tcl-7904f2c09aac76e42beaba3829d4e0bc702b5828.tar.bz2 |
Eliminate various unnecessary type casts, use function typedefs whenever possible
Diffstat (limited to 'unix/tclUnixNotfy.c')
-rw-r--r-- | unix/tclUnixNotfy.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c index e8860df..79bcf9c 100644 --- a/unix/tclUnixNotfy.c +++ b/unix/tclUnixNotfy.c @@ -7,10 +7,10 @@ * * Copyright (c) 1995-1997 Sun Microsystems, Inc. * - * See the file "license.terms" for information on usage and redistribution of - * this file, and for a DISCLAIMER OF ALL WARRANTIES. + * See the file "license.terms" for information on usage and redistribution + * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixNotfy.c,v 1.41 2009/12/17 00:06:21 nijtmans Exp $ + * RCS: @(#) $Id: tclUnixNotfy.c,v 1.42 2010/06/21 11:23:23 nijtmans Exp $ */ #include "tclInt.h" @@ -232,7 +232,7 @@ Tcl_InitNotifier(void) Tcl_MutexUnlock(¬ifierMutex); #endif - return (ClientData) tsdPtr; + return tsdPtr; } } @@ -344,7 +344,8 @@ Tcl_AlertNotifier( return; } else { #ifdef TCL_THREADS - ThreadSpecificData *tsdPtr = (ThreadSpecificData *) clientData; + ThreadSpecificData *tsdPtr = clientData; + Tcl_MutexLock(¬ifierMutex); tsdPtr->eventReady = 1; Tcl_ConditionNotify(&tsdPtr->waitCV); |