aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/lock.h
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-24 22:13:37 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-24 22:13:37 +0000
commitcd695b061685d55c9dc919cf55fb76e07cb9ac85 (patch)
treed2b15cc97dc0df207ca3ec76f36e9180c1dc4b98 /include/asterisk/lock.h
parenta65b75cc7550ed8b737e6d4c7709c5cda2cde5b3 (diff)
Merged revisions 76937 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r76937 | tilghman | 2007-07-24 17:12:43 -0500 (Tue, 24 Jul 2007) | 10 lines 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/trunk@76940 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 22a23a844..4376665f7 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;
}