From: <bi...@us...> - 2008-01-02 00:01:14
|
Revision: 1998 http://oorexx.svn.sourceforge.net/oorexx/?rev=1998&view=rev Author: bigrixx Date: 2008-01-01 16:01:19 -0800 (Tue, 01 Jan 2008) Log Message: ----------- Fix Mac compile problems in rexxutil Modified Paths: -------------- interpreter-3.x/trunk/rexutils/unix/rexxutil.cpp Modified: interpreter-3.x/trunk/rexutils/unix/rexxutil.cpp =================================================================== --- interpreter-3.x/trunk/rexutils/unix/rexxutil.cpp 2008-01-01 23:39:53 UTC (rev 1997) +++ interpreter-3.x/trunk/rexutils/unix/rexxutil.cpp 2008-01-02 00:01:19 UTC (rev 1998) @@ -3469,7 +3469,7 @@ if(!getval(apidata->rexxutilsems, handle)){/* if sem is locked */ /* and I'm the owner */ - if((opencnt[handle][1]) == (int)pthread_self()){ + if((opencnt[handle][1]) == pthread_self()){ sprintf(retstr->strptr, "%d", 0); /* no errors */ } else { /* wait for it */ @@ -3491,7 +3491,7 @@ else { /* need timeout porcess */ if(!getval(apidata->rexxutilsems, handle)){/* if sem is locked */ /* and I'm the owner */ - if((opencnt[handle][1])== (int)pthread_self()){ + if((opencnt[handle][1]) == pthread_self()){ sprintf(retstr->strptr, "%d", 0);/* no errors */ } else { /* wait for it */ @@ -3606,7 +3606,7 @@ } if(!getval(apidata->rexxutilsems, handle)){/* if sem is locked */ /* and I'm the owner */ - if((opencnt[handle][1])== (int)pthread_self()){ + if((opencnt[handle][1])== pthread_self()){ /* unlock the sem */ unlocksem(apidata->rexxutilsems, handle); (opencnt[handle][1])= 0; /* reset the owner TID */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |