fix trivial compiler warnings

This commit is contained in:
Jeff Lenk 2013-02-20 16:36:41 -06:00
parent bd25514307
commit 3400a0a6da
2 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_read(switch_file_handle_t *fh,
top: top:
if (fh->max_samples > 0 && fh->samples_in >= fh->max_samples) { if (fh->max_samples > 0 && fh->samples_in >= (switch_size_t)fh->max_samples) {
*len = 0; *len = 0;
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
} }

View File

@ -1392,7 +1392,7 @@ SWITCH_DECLARE(int) switch_sql_queue_manager_size(switch_sql_queue_manager_t *qm
SWITCH_DECLARE(switch_status_t) switch_sql_queue_manager_stop(switch_sql_queue_manager_t *qm) SWITCH_DECLARE(switch_status_t) switch_sql_queue_manager_stop(switch_sql_queue_manager_t *qm)
{ {
switch_status_t status = SWITCH_STATUS_FALSE; switch_status_t status = SWITCH_STATUS_FALSE;
int i; uint32_t i;
if (qm->thread_running) { if (qm->thread_running) {
qm->thread_running = 0; qm->thread_running = 0;