aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-04 13:56:10 +0000
committermvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-04 13:56:10 +0000
commit49ed29d38b34db3531b514df830ab2ebb262a449 (patch)
treef8017d9aae67da8dd2ca03d9baf7ad7d1fc244fa /include
parentad21ba4d9d714e5f347997c06b410f60baf29f22 (diff)
make asterisk compile under devmode with DEBUG_THREADS enabled on OpenBSD
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@216435 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/lock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h
index 471c938f2..be2bf3bea 100644
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -1027,7 +1027,7 @@ static inline int _ast_rwlock_timedrdlock(ast_rwlock_t *lock, const char *name,
do {
struct timeval _start = ast_tvnow(), _diff;
for (;;) {
- if (!(res = pthread_rwlock_tryrdlock(&t->lock))) {
+ if (!(res = pthread_rwlock_tryrdlock(lock))) {
break;
}
_diff = ast_tvsub(ast_tvnow(), _start);
@@ -1076,7 +1076,7 @@ static inline int _ast_rwlock_timedwrlock(ast_rwlock_t *lock, const char *name,
do {
struct timeval _start = ast_tvnow(), _diff;
for (;;) {
- if (!(res = pthread_rwlock_trywrlock(&t->lock))) {
+ if (!(res = pthread_rwlock_trywrlock(lock))) {
break;
}
_diff = ast_tvsub(ast_tvnow(), _start);