X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmutex.c;h=85b0c7bd07bb12a7d3a27101b0b5e9b3965b301c;hb=3dc0c503f9594142c8568fabb2c8e354377251ef;hp=d1cd50e4bc70a4ed04683fb86fcadb1021815585;hpb=9f11f349958f122419856006d9295eb0ce41274d;p=yaz-moved-to-github.git diff --git a/src/mutex.c b/src/mutex.c index d1cd50e..85b0c7b 100644 --- a/src/mutex.c +++ b/src/mutex.c @@ -56,7 +56,7 @@ void yaz_mutex_create_attr(YAZ_MUTEX *p, int flags) { } void yaz_mutex_create(YAZ_MUTEX *p) { - yaz_mutex_create(YAZ_MUTEX *p, 0); + yaz_mutex_create_attr(p, 0); } void yaz_mutex_set_name(YAZ_MUTEX p, int log_level, const char *name) @@ -148,7 +148,7 @@ void yaz_mutex_destroy(YAZ_MUTEX *p) #ifdef WIN32 DeleteCriticalSection(&(*p)->handle); #elif YAZ_POSIX_THREADS - pthread_mutexattr_destroy(&(*p)->attr); + pthread_mutexattr_destroy((*p)->attr); free((*p)->attr); pthread_mutex_destroy(&(*p)->handle); #endif