[Freeswitch-svn] [commit] r5274 - freeswitch/trunk/scripts/socket/socket2me
Freeswitch SVN
anthm at freeswitch.org
Wed Jun 6 10:14:18 EDT 2007
Author: anthm
Date: Wed Jun 6 10:14:17 2007
New Revision: 5274
Modified:
freeswitch/trunk/scripts/socket/socket2me/socket2me.c
Log:
update
Modified: freeswitch/trunk/scripts/socket/socket2me/socket2me.c
==============================================================================
--- freeswitch/trunk/scripts/socket/socket2me/socket2me.c (original)
+++ freeswitch/trunk/scripts/socket/socket2me/socket2me.c Wed Jun 6 10:14:17 2007
@@ -284,7 +284,7 @@
for (;;) {
struct sockaddr_in local_addr = {0};
- int cliAddrLen = sizeof(local_addr);
+ size_t cliAddrLen = sizeof(local_addr);
unsigned char audiobuf[1024], rawbuf[1024], outbuf[1024];
short *usebuf = NULL;
int tx, tx_bytes, bigger, sample_count;
@@ -316,7 +316,7 @@
continue;
}
- if ((read_bytes = recvfrom(usock, audiobuf, sizeof(audiobuf), 0, (struct sockaddr *) &local_addr, cliAddrLen)) < 0) {
+ if ((read_bytes = recvfrom(usock, audiobuf, sizeof(audiobuf), 0, (struct sockaddr *) &local_addr, &cliAddrLen)) < 0) {
die("recvfrom() failed");
}
More information about the Freeswitch-svn
mailing list