Commit eb4f5437 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix unused variables

parent b0c5530b
...@@ -1993,7 +1993,6 @@ stunSendTest( Socket myFd, StunAddress4 *dest, ...@@ -1993,7 +1993,6 @@ stunSendTest( Socket myFd, StunAddress4 *dest,
bool_t changePort=FALSE; bool_t changePort=FALSE;
bool_t changeIP=FALSE; bool_t changeIP=FALSE;
bool_t discard=FALSE;
StunMessage req; StunMessage req;
char buf[STUN_MAX_MESSAGE_SIZE]; char buf[STUN_MAX_MESSAGE_SIZE];
...@@ -2015,9 +2014,10 @@ stunSendTest( Socket myFd, StunAddress4 *dest, ...@@ -2015,9 +2014,10 @@ stunSendTest( Socket myFd, StunAddress4 *dest,
case 4: case 4:
changeIP=TRUE; changeIP=TRUE;
break; break;
case 5: /* case 5:
discard=TRUE; discard=TRUE;
break; break;
*/
default: default:
ortp_error("stun: Test %i is unkown\n", testNum); ortp_error("stun: Test %i is unkown\n", testNum);
return ; /* error */ return ; /* error */
...@@ -2162,7 +2162,7 @@ stunNatType( StunAddress4 *dest, ...@@ -2162,7 +2162,7 @@ stunNatType( StunAddress4 *dest,
bool_t respTestI=FALSE; bool_t respTestI=FALSE;
bool_t isNat=TRUE; bool_t isNat=TRUE;
StunAddress4 testIchangedAddr; /*StunAddress4 testIchangedAddr;*/
StunAddress4 testImappedAddr; StunAddress4 testImappedAddr;
bool_t respTestI2=FALSE; bool_t respTestI2=FALSE;
bool_t mappedIpSame = TRUE; bool_t mappedIpSame = TRUE;
...@@ -2345,8 +2345,8 @@ stunNatType( StunAddress4 *dest, ...@@ -2345,8 +2345,8 @@ stunNatType( StunAddress4 *dest,
if ( !respTestI ) if ( !respTestI )
{ {
testIchangedAddr.addr = resp.changedAddress.ipv4.addr; /*testIchangedAddr.addr = resp.changedAddress.ipv4.addr;
testIchangedAddr.port = resp.changedAddress.ipv4.port; testIchangedAddr.port = resp.changedAddress.ipv4.port;*/
testImappedAddr.addr = resp.mappedAddress.ipv4.addr; testImappedAddr.addr = resp.mappedAddress.ipv4.addr;
testImappedAddr.port = resp.mappedAddress.ipv4.port; testImappedAddr.port = resp.mappedAddress.ipv4.port;
......
...@@ -163,8 +163,12 @@ int main(int argc, char*argv[]) ...@@ -163,8 +163,12 @@ int main(int argc, char*argv[])
/* this is to avoid to write to disk some silence before the first RTP packet is returned*/ /* this is to avoid to write to disk some silence before the first RTP packet is returned*/
if ((stream_received) && (err>0)) { if ((stream_received) && (err>0)) {
size_t ret = fwrite(buffer,1,err,outfile); size_t ret = fwrite(buffer,1,err,outfile);
if (sound_fd>0) if (sound_fd>0){
ret = write(sound_fd,buffer,err); ret = write(sound_fd,buffer,err);
if (ret==-1){
fprintf(stderr,"write to sound card failed (%s)",strerror(errno));
}
}
} }
} }
ts+=160; ts+=160;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment