From: Tilghman Lesher Date: Tue, 24 Jul 2007 22:11:33 +0000 (+0000) Subject: Oops, res contains the error code, not errno. I was wondering why a mutex was report... X-Git-Tag: 1.2.24~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=325bfeeda5695c880de51ddf8e6a0159391fa198;p=thirdparty%2Fasterisk.git 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/branches/1.2@76934 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index f2ebdabe7e..4b000e12fd 100644 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -268,7 +268,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)); #ifdef THREAD_CRASH DO_THREAD_CRASH; #endif