From adf5e2f6ecd1e2cd44011379d4db7a647c99b375 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Sat, 20 Jul 2013 22:13:27 -0500 Subject: [PATCH] fix windows compiler warnings --- src/switch_core_session.c | 4 ++-- src/switch_ivr.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/switch_core_session.c b/src/switch_core_session.c index 2040939632..9bcb6488be 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -2301,10 +2301,10 @@ SWITCH_DECLARE(switch_core_session_t *) switch_core_session_request_uuid(switch_ session->id = session_manager.session_id++; session_manager.session_count++; - if (session_manager.session_count > runtime.sessions_peak) { + if (session_manager.session_count > (uint32_t)runtime.sessions_peak) { runtime.sessions_peak = session_manager.session_count; } - if (session_manager.session_count > runtime.sessions_peak_fivemin) { + if (session_manager.session_count > (uint32_t)runtime.sessions_peak_fivemin) { runtime.sessions_peak_fivemin = session_manager.session_count; } diff --git a/src/switch_ivr.c b/src/switch_ivr.c index c3dc715e75..232f0a6dd2 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -3247,7 +3247,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_set_user_xml(switch_core_session_t *s SWITCH_DECLARE(switch_status_t) switch_ivr_set_user(switch_core_session_t *session, const char *data) { - switch_xml_t x_user; + switch_xml_t x_user = 0; char *user, *domain; switch_status_t status = SWITCH_STATUS_FALSE;