[Asterisk-cvs] asterisk asterisk.c,1.69,1.70
markster at lists.digium.com
markster at lists.digium.com
Thu Apr 22 01:06:26 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv21494
Modified Files:
asterisk.c
Log Message:
Oopsies
Index: asterisk.c
===================================================================
RCS file: /usr/cvsroot/asterisk/asterisk.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- asterisk.c 22 Apr 2004 00:20:33 -0000 1.69
+++ asterisk.c 22 Apr 2004 05:11:11 -0000 1.70
@@ -29,6 +29,7 @@
#include <asterisk/enum.h>
#include <asterisk/rtp.h>
#include <asterisk/app.h>
+#include <asterisk/lock.h>
#include <sys/resource.h>
#include <fcntl.h>
#include <stdio.h>
@@ -46,7 +47,6 @@
#include "editline/histedit.h"
#include "asterisk.h"
#include <asterisk/config.h>
-#include <asterisk/lock.h>
#define AST_MAX_CONNECTS 128
#define NUM_MSGS 64
@@ -1680,10 +1680,10 @@
struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp)
{
int res;
- int h_errno;
+ int herrno;
struct hostent *result = NULL;
/* XXX Does BSD do this differently? XXX */
- res = gethostbyname_r(host, &hp->hp, hp->buf, sizeof(hp->buf), &result, &h_errno);
+ res = gethostbyname_r(host, &hp->hp, hp->buf, sizeof(hp->buf), &result, &herrno);
if (res)
return NULL;
return &hp->hp;
More information about the svn-commits
mailing list