[Asterisk-cvs] asterisk/agi eagi-sphinx-test.c,1.1.1.2,1.2
markster at lists.digium.com
markster at lists.digium.com
Mon Sep 8 11:46:58 CDT 2003
- Previous message: [Asterisk-cvs] asterisk/res res_monitor.c,1.3,1.4
- Next message: [Asterisk-cvs] asterisk asterisk.c,1.19,1.20 autoservice.c,1.2,1.3 channel.c,1.42,1.43 loader.c,1.6,1.7 logger.c,1.3,1.4 manager.c,1.20,1.21 rtp.c,1.26,1.27 sched.c,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/agi
In directory mongoose.digium.com:/tmp/cvs-serv30979/agi
Modified Files:
eagi-sphinx-test.c
Log Message:
BSD portability enhancements (bug #234)
Index: eagi-sphinx-test.c
===================================================================
RCS file: /usr/cvsroot/asterisk/agi/eagi-sphinx-test.c,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -C2 -d -r1.1.1.2 -r1.2
*** eagi-sphinx-test.c 26 Feb 2003 19:41:09 -0000 1.1.1.2
--- eagi-sphinx-test.c 8 Sep 2003 16:48:06 -0000 1.2
***************
*** 14,20 ****
#include <sys/select.h>
#include <fcntl.h>
- #include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
--- 14,20 ----
#include <sys/select.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
+ #include <arpa/inet.h>
#include <netdb.h>
***************
*** 45,49 ****
sin.sin_port = htons(SPHINX_PORT);
memcpy(&sin.sin_addr, hp->h_addr, sizeof(sin.sin_addr));
! if (connect(sphinx_sock, &sin, sizeof(sin))) {
fprintf(stderr, "Unable to connect on socket: %s\n", strerror(errno));
close(sphinx_sock);
--- 45,49 ----
sin.sin_port = htons(SPHINX_PORT);
memcpy(&sin.sin_addr, hp->h_addr, sizeof(sin.sin_addr));
! if (connect(sphinx_sock, (struct sockaddr *)&sin, sizeof(sin))) {
fprintf(stderr, "Unable to connect on socket: %s\n", strerror(errno));
close(sphinx_sock);
- Previous message: [Asterisk-cvs] asterisk/res res_monitor.c,1.3,1.4
- Next message: [Asterisk-cvs] asterisk asterisk.c,1.19,1.20 autoservice.c,1.2,1.3 channel.c,1.42,1.43 loader.c,1.6,1.7 logger.c,1.3,1.4 manager.c,1.20,1.21 rtp.c,1.26,1.27 sched.c,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list