aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-23 19:51:56 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-23 19:51:56 +0000
commitf1545046a70d13e73c61afa2f36e9736caf183d7 (patch)
tree4bb27a9d75fd933a367bf104bca6055d50dd5fc1 /include/asterisk
parent821a7077dbcac2f9bebbeb048bf72a8d67539d05 (diff)
Use the correct function to destroy an rwlock in the destructor for an ast_rwlock_t
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48927 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/lock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h
index 75ae4d37b..c44929fa5 100644
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -672,7 +672,7 @@ static void __attribute__ ((constructor)) init_##rwlock(void) \
} \
static void __attribute__ ((destructor)) fini_##rwlock(void) \
{ \
- ast_mutex_destroy(&rwlock); \
+ ast_rwlock_destroy(&rwlock); \
}
#else
#define AST_RWLOCK_INIT_VALUE PTHREAD_RWLOCK_INITIALIZER