diff options
author | Stef Walter <stef@memberwebs.com> | 2004-09-07 03:44:32 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-09-07 03:44:32 +0000 |
commit | 0a880f80ffa84cf21c8780df37bae2aa70037126 (patch) | |
tree | cc9fcceacd73462a36f8ba7ab75e0fbe6150de36 /common | |
parent | 5d7240b3bba30a278221f0e0e4a7ba5995200bf3 (diff) |
- Fixed warnings
Diffstat (limited to 'common')
-rw-r--r-- | common/stringx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/stringx.c b/common/stringx.c index 96c631b..1067f27 100644 --- a/common/stringx.c +++ b/common/stringx.c @@ -244,12 +244,12 @@ void plock() #endif #ifdef _DEBUG - r = pthread_mutex_trylock(&(g_state->mutex)); + r = pthread_mutex_trylock((pthread_mutex_t*)&(g_state->mutex)); if(r == EBUSY) { wait = 1; message(NULL, LOG_DEBUG, "thread will block: %d", pthread_self()); - r = pthread_mutex_lock(&(g_state->mutex)); + r = pthread_mutex_lock((pthread_mutex_t*)&(g_state->mutex)); } #else @@ -273,7 +273,7 @@ void plock() void punlock() { - int r = pthread_mutex_unlock(&(g_state->mutex)); + int r = pthread_mutex_unlock((pthread_mutex_t*)&(g_state->mutex)); if(r != 0) { errno = r; |