summaryrefslogtreecommitdiffstats
path: root/lib/log.c
diff options
context:
space:
mode:
authorpaulo <paul@bayleaf.org.uk>2009-12-17 16:25:29 +0000
committerpaulo <paul@bayleaf.org.uk>2009-12-17 16:25:29 +0000
commit29e6ad6c07992d6a947d739d1665a95e817e6e9b (patch)
treed86b1aa9072cab272df2addaab69e0cb2df64851 /lib/log.c
parent57c08de786262cfb59cbc691ac18712d0ac1e9e3 (diff)
downloadquagga-29e6ad6c07992d6a947d739d1665a95e817e6e9b.tar.bz2
quagga-29e6ad6c07992d6a947d739d1665a95e817e6e9b.tar.xz
Use static mutexes
Diffstat (limited to 'lib/log.c')
-rw-r--r--lib/log.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/log.c b/lib/log.c
index 592dbf49..05911375 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -37,11 +37,11 @@
#include "qpthreads.h"
#ifdef NDEBUG
-#define LOCK qpt_mutex_lock(vty_mutex);
-#define UNLOCK qpt_mutex_unlock(vty_mutex);
+#define LOCK qpt_mutex_lock(&vty_mutex);
+#define UNLOCK qpt_mutex_unlock(&vty_mutex);
#else
-#define LOCK qpt_mutex_lock(vty_mutex);++vty_lock_count;
-#define UNLOCK --vty_lock_count;qpt_mutex_unlock(vty_mutex);
+#define LOCK qpt_mutex_lock(&vty_mutex);++vty_lock_count;
+#define UNLOCK --vty_lock_count;qpt_mutex_unlock(&vty_mutex);
#define ASSERTLOCKED if(vty_lock_count==0 && !vty_lock_asserted){vty_lock_asserted=1;assert(0);}
#endif