[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


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);




More information about the svn-commits mailing list