mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 12:52:33 +00:00
Oopsies
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
#include <asterisk/enum.h>
|
#include <asterisk/enum.h>
|
||||||
#include <asterisk/rtp.h>
|
#include <asterisk/rtp.h>
|
||||||
#include <asterisk/app.h>
|
#include <asterisk/app.h>
|
||||||
|
#include <asterisk/lock.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -46,7 +47,6 @@
|
|||||||
#include "editline/histedit.h"
|
#include "editline/histedit.h"
|
||||||
#include "asterisk.h"
|
#include "asterisk.h"
|
||||||
#include <asterisk/config.h>
|
#include <asterisk/config.h>
|
||||||
#include <asterisk/lock.h>
|
|
||||||
|
|
||||||
#define AST_MAX_CONNECTS 128
|
#define AST_MAX_CONNECTS 128
|
||||||
#define NUM_MSGS 64
|
#define NUM_MSGS 64
|
||||||
@@ -1680,10 +1680,10 @@ int main(int argc, char *argv[])
|
|||||||
struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp)
|
struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp)
|
||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
int h_errno;
|
int herrno;
|
||||||
struct hostent *result = NULL;
|
struct hostent *result = NULL;
|
||||||
/* XXX Does BSD do this differently? XXX */
|
/* 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)
|
if (res)
|
||||||
return NULL;
|
return NULL;
|
||||||
return &hp->hp;
|
return &hp->hp;
|
||||||
|
Reference in New Issue
Block a user