mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
fix msvc compile. Cleanup some warnings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@660 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -673,7 +673,7 @@ static switch_status exosip_write_frame(switch_core_session *session, switch_fra
|
||||
tech_pvt->out_digit_sofar = 0;
|
||||
tech_pvt->out_digit_dur = rdigit->duration;
|
||||
tech_pvt->out_digit = rdigit->digit;
|
||||
tech_pvt->out_digit_packet[0] = switch_char_to_rfc2833(rdigit->digit);
|
||||
tech_pvt->out_digit_packet[0] = (unsigned char)switch_char_to_rfc2833(rdigit->digit);
|
||||
tech_pvt->out_digit_packet[1] = 7;
|
||||
|
||||
ts = tech_pvt->timestamp_dtmf += samples;
|
||||
@@ -767,7 +767,7 @@ static switch_status exosip_send_dtmf(switch_core_session *session, char *digits
|
||||
for(c = digits; *c; c++) {
|
||||
struct rfc2833_digit *rdigit;
|
||||
|
||||
if ((rdigit = malloc(sizeof(*rdigit)))) {
|
||||
if ((rdigit = malloc(sizeof(*rdigit))) != 0) {
|
||||
memset(rdigit, 0, sizeof(*rdigit));
|
||||
rdigit->digit = *c;
|
||||
rdigit->duration = globals.dtmf_duration * (tech_pvt->read_codec.implementation->samples_per_second / 1000);
|
||||
|
Reference in New Issue
Block a user