diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 506178b9e9..f3bf243026 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -291,6 +291,8 @@ static switch_status_t strepoch_api_function(char *data, switch_core_session_t * } stream->write_function(stream, "%d", (uint32_t)apr_time_sec(out)); + + return SWITCH_STATUS_SUCCESS; } static switch_status_t strftime_api_function(char *fmt, switch_core_session_t *session, switch_stream_handle_t *stream) diff --git a/src/mod/say/mod_say_en/mod_say_en.c b/src/mod/say/mod_say_en/mod_say_en.c index 8d4d2b6efd..950dd3e65e 100644 --- a/src/mod/say/mod_say_en/mod_say_en.c +++ b/src/mod/say/mod_say_en/mod_say_en.c @@ -402,13 +402,10 @@ static switch_status_t en_say_money(switch_core_session_t *session, { switch_channel_t *channel; - int x = 0; char sbuf[16] = ""; // enuf for 999,999,999,999.99 (w/o the commas) double amt, dollars, cents; - switch_status_t status; - assert(session != NULL); channel = switch_core_session_get_channel(session); assert(channel != NULL); @@ -419,9 +416,7 @@ static switch_status_t en_say_money(switch_core_session_t *session, } amt = atof(tosay); //convert to double - dollars = trunc(amt); // get whole dollars - cents = trunc(fabs((amt - dollars))*100.0); // get cents as whole integer (dropping sign) - dollars = fabs(dollars); // lose the sign + cents = modf(fabs(amt), &dollars); // split dollars and cents // If negative say "negative" (or "minus") if (amt < 0.0) { diff --git a/src/switch_ivr.c b/src/switch_ivr.c index adfc3a3114..5524bdb2a4 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -2389,7 +2389,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess for (hi = switch_channel_variable_first(caller_channel, switch_core_session_get_pool(session)); hi; hi = switch_hash_next(hi)) { switch_hash_this(hi, &vvar, NULL, &vval); if (vvar && vval) { - switch_event_add_header(var_event, SWITCH_STACK_BOTTOM, vvar, vval); + switch_event_add_header(var_event, SWITCH_STACK_BOTTOM, (void *)vvar, vval); } }