From 1aa9e4fc4d1d3b7fddd6f28e01b6abdd30605110 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Tue, 24 Jul 2007 22:13:37 +0000 Subject: 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: https://origsvn.digium.com/svn/asterisk/trunk@76940 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/lock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/asterisk/lock.h') 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; } -- cgit v1.2.3