diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-04-22 05:11:11 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-04-22 05:11:11 +0000 |
commit | d6b71a561bb2a54a3d0eb32b822455e7e799f53c (patch) | |
tree | 0d688321830f91a7979bbfbd150ebf84802fe05d /asterisk.c | |
parent | fdf6a007a8dca09d3eedbc71fa4daf919cd567f0 (diff) |
Oopsies
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2742 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rwxr-xr-x | asterisk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/asterisk.c b/asterisk.c index eab37a877..bc27f37dc 100755 --- a/asterisk.c +++ b/asterisk.c @@ -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 @@ 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; |