fix windows compiler warnings

This commit is contained in:
Jeff Lenk 2013-07-20 22:17:47 -05:00
parent 3c7e78ac5a
commit e362cb545b
2 changed files with 3 additions and 3 deletions

View File

@ -2294,10 +2294,10 @@ SWITCH_DECLARE(switch_core_session_t *) switch_core_session_request_uuid(switch_
session->id = session_manager.session_id++; session->id = session_manager.session_id++;
session_manager.session_count++; 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; 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; runtime.sessions_peak_fivemin = session_manager.session_count;
} }

View File

@ -3245,7 +3245,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_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; char *user, *domain;
switch_status_t status = SWITCH_STATUS_FALSE; switch_status_t status = SWITCH_STATUS_FALSE;