mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 15:14:17 +00:00
Tweaks to silence some compiler warnings on Windows
This commit is contained in:
1 parent
6d5bd4abaa
commit
609209d031
3 files changed
+8
-4
No files matched your search
@@ -2950,7 +2950,7 @@ SWITCH_STANDARD_API(uuid_set_media_stats)
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
#define add_stat(_i, _s) cJSON_AddItemToObject(jstats, _s, cJSON_CreateNumber(_i))
|
||||
#define add_stat(_i, _s) cJSON_AddItemToObject(jstats, _s, cJSON_CreateNumber(((double)_i)))
|
||||
|
||||
static void jsonify_stats(cJSON *json, const char *name, switch_rtp_stats_t *stats)
|
||||
{
|
||||
|
||||
@@ -1756,7 +1756,7 @@ static void *SWITCH_THREAD_FUNC o_thread_run(switch_thread_t *thread, void *obj)
|
||||
|
||||
sql = switch_mprintf("update fifo_outbound set ring_count=ring_count-1, "
|
||||
"outbound_fail_count=outbound_fail_count+1, next_avail=%ld + lag + 1 where uuid='%q'",
|
||||
(long) switch_epoch_time_now(NULL) + node->retry_delay, h->uuid);
|
||||
(long) switch_epoch_time_now(NULL) + (node ? node->retry_delay : 0), h->uuid);
|
||||
fifo_execute_sql_queued(&sql, SWITCH_TRUE, SWITCH_TRUE);
|
||||
|
||||
if (switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, FIFO_EVENT) == SWITCH_STATUS_SUCCESS) {
|
||||
|
||||
Reference in new issue
Block a user