X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=util%2Fzebra-lock.c;fp=util%2Fzebra-lock.c;h=8d440947fc34ef015e14ce97e687ac22b9a98046;hp=3332edaacb567f0085a9813a42115cb73a68b02f;hb=aeea139423b8eaf28a4de53b3d7b2ad1f22284e7;hpb=0052fb5520062c328006dc3537f39d28e88f3579 diff --git a/util/zebra-lock.c b/util/zebra-lock.c index 3332eda..8d44094 100644 --- a/util/zebra-lock.c +++ b/util/zebra-lock.c @@ -46,7 +46,7 @@ int zebra_mutex_destroy (Zebra_mutex *p) if (p->state != 0) { fprintf (stderr, "zebra_mutex_destroy. state = %d\n", p->state); - } + } #if YAZ_POSIX_THREADS pthread_mutex_destroy (&p->mutex); #endif @@ -140,7 +140,7 @@ int zebra_lock_rdwr_runlock (Zebra_lock_rdwr *p) { pthread_mutex_unlock (&p->mutex); return -1; - } + } else { p->readers_reading--;