aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/lock.h
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-24 22:12:43 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-24 22:12:43 +0000
commit29cf55b1e09247d44d44123b520f8fa0ecbba052 (patch)
tree1c6178e6de24af08c5c9f6de60a4a11847ab3b7f /include/asterisk/lock.h
parent4adb7a1e0b2f1383bbb1ab012f274184f9f73fa0 (diff)
Merged revisions 76934 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r76934 | tilghman | 2007-07-24 17:11:33 -0500 (Tue, 24 Jul 2007) | 2 lines Oops, res contains the error code, not errno. I was wondering why a mutex was reporting "No such file or directory"... ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76937 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/lock.h')
-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 c2aeecdf5..d3a299b64 100644
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -273,7 +273,7 @@ static inline int __ast_pthread_mutex_lock(const char *filename, int lineno, con
}
} else {
__ast_mutex_logger("%s line %d (%s): Error obtaining mutex: %s\n",
- filename, lineno, func, strerror(errno));
+ filename, lineno, func, strerror(res));
DO_THREAD_CRASH;
}