[Asterisk-cvs] asterisk asterisk.c,1.75,1.76
markster at lists.digium.com
markster at lists.digium.com
Wed Apr 28 15:48:28 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv11368
Modified Files:
asterisk.c
Log Message:
More FreeBSD fixes
Index: asterisk.c
===================================================================
RCS file: /usr/cvsroot/asterisk/asterisk.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- asterisk.c 28 Apr 2004 13:53:01 -0000 1.75
+++ asterisk.c 28 Apr 2004 19:55:04 -0000 1.76
@@ -1702,8 +1702,8 @@
int hsave;
struct hostent *ph;
- static pthread_mutex_t __mutex = PTHREAD_MUTEX_INITIALIZER;
- pthread_mutex_lock(&__mutex); /* begin critical area */
+ static ast_mutex_t __mutex = AST_MUTEX_INITIALIZER;
+ ast_mutex_lock(&__mutex); /* begin critical area */
hsave = h_errno;
ph = gethostbyname(name);
@@ -1789,9 +1789,9 @@
}
h_errno = hsave; /* restore h_errno */
- pthread_mutex_unlock(&__mutex); /* end critical area */
+ ast_mutex_unlock(&__mutex); /* end critical area */
- return (*result == NULL);
+ return (*result != NULL);
}
More information about the svn-commits
mailing list