diff options
author | Chris Hall (GMCH) <chris.hall@highwayman.com> | 2009-12-07 12:40:11 +0000 |
---|---|---|
committer | Chris Hall (GMCH) <chris.hall@highwayman.com> | 2009-12-07 12:40:11 +0000 |
commit | 2c282bd4752f5eae9d5e40d687fdc6af2f203c91 (patch) | |
tree | 91d85f9615c05e89c2c87114905b7e5760d5141b /lib/qpthreads.h | |
parent | e41a8e264e177d9314847ac6dea653be061a376b (diff) | |
download | quagga-2c282bd4752f5eae9d5e40d687fdc6af2f203c91.tar.bz2 quagga-2c282bd4752f5eae9d5e40d687fdc6af2f203c91.tar.xz |
Fixed qpt_mutex_unlock() (debug version).
Diffstat (limited to 'lib/qpthreads.h')
-rw-r--r-- | lib/qpthreads.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/qpthreads.h b/lib/qpthreads.h index 65e64dbf..1c51a9ee 100644 --- a/lib/qpthreads.h +++ b/lib/qpthreads.h @@ -290,9 +290,9 @@ qpt_mutex_unlock(qpt_mutex_t* mx) /* do nothing if mx == NULL */ #if defined(NDEBUG) && defined(NDEBUG_QPTHREADS) pthread_mutex_unlock(mx) ; #else - int err = pthread_mutex_lock(mx) ; + int err = pthread_mutex_unlock(mx) ; if (err != 0) - zabort_err("pthread_mutex_lock failed", err) ; + zabort_err("pthread_mutex_unlock failed", err) ; #endif } ; } ; |