diff options
author | Mark Spencer <markster@digium.com> | 2003-09-08 16:48:07 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-09-08 16:48:07 +0000 |
commit | 479a67e629385a2c43bf9383c0c23f5dae032504 (patch) | |
tree | 32674bc8c5dc21153e7c8a4548f6641aef0566bf /agi | |
parent | 1e19f72077a8e2f5befb21bb5c3f2131f8b24107 (diff) |
BSD portability enhancements (bug #234)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'agi')
-rwxr-xr-x | agi/eagi-sphinx-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/agi/eagi-sphinx-test.c b/agi/eagi-sphinx-test.c index ed0239435..3015b730b 100755 --- a/agi/eagi-sphinx-test.c +++ b/agi/eagi-sphinx-test.c @@ -13,9 +13,9 @@ #include <string.h> #include <sys/select.h> #include <fcntl.h> -#include <arpa/inet.h> #include <sys/socket.h> #include <netinet/in.h> +#include <arpa/inet.h> #include <netdb.h> #define AUDIO_FILENO (STDERR_FILENO + 1) @@ -44,7 +44,7 @@ static int connect_sphinx(void) sin.sin_family = AF_INET; sin.sin_port = htons(SPHINX_PORT); memcpy(&sin.sin_addr, hp->h_addr, sizeof(sin.sin_addr)); - if (connect(sphinx_sock, &sin, sizeof(sin))) { + if (connect(sphinx_sock, (struct sockaddr *)&sin, sizeof(sin))) { fprintf(stderr, "Unable to connect on socket: %s\n", strerror(errno)); close(sphinx_sock); sphinx_sock = -1; |