From 0d9adb7294ca637bf1ee2c83167184ebe90c128d Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Thu, 22 Apr 2004 05:11:11 +0000 Subject: [PATCH] Oopsies git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2742 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- asterisk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/asterisk.c b/asterisk.c index eab37a877a..bc27f37dcd 100755 --- a/asterisk.c +++ b/asterisk.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -46,7 +47,6 @@ #include "editline/histedit.h" #include "asterisk.h" #include -#include #define AST_MAX_CONNECTS 128 #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) { 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;