]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix trivial compiler warnings
authorJeff Lenk <jeff@jefflenk.com>
Wed, 20 Feb 2013 22:36:41 +0000 (16:36 -0600)
committerJeff Lenk <jeff@jefflenk.com>
Wed, 20 Feb 2013 22:36:41 +0000 (16:36 -0600)
src/switch_core_file.c
src/switch_core_sqldb.c

index d72e1938ba3b1495b1d0ca5acf632ee826cc561d..7bc8ccc4b092a996edad8794fa3efbe183268bdb 100644 (file)
@@ -252,7 +252,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_read(switch_file_handle_t *fh,
 
   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;
                return SWITCH_STATUS_FALSE;
        }
index e4cf71dc5e35675e8fd77c01e4c15ab56f758c50..c2a1f5cbcf1269a7c67233dfa2861c0ffe2754e0 100644 (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_status_t status = SWITCH_STATUS_FALSE;
-       int i;
+       uint32_t i;
 
        if (qm->thread_running) {
                qm->thread_running = 0;