]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix compiler warning on unmatched return type
authorSeven Du <dujinfang@gmail.com>
Wed, 12 Nov 2014 05:31:30 +0000 (13:31 +0800)
committerSeven Du <dujinfang@gmail.com>
Wed, 12 Nov 2014 05:31:30 +0000 (13:31 +0800)
src/switch_core_sqldb.c

index adcfbcf300a14f37815272c0e9ab13d0064e9447..508b68643dd2cee1698b5b771c079b969adf045c 100644 (file)
@@ -1296,7 +1296,9 @@ SWITCH_DECLARE(switch_bool_t) switch_cache_db_test_reactive(switch_cache_db_hand
        }
 
        if (!switch_test_flag((&runtime), SCF_AUTO_SCHEMAS)) {
-               return switch_cache_db_execute_sql(dbh, (char *)test_sql, NULL);
+               switch_status_t status = switch_cache_db_execute_sql(dbh, (char *)test_sql, NULL);
+
+               return (status == SWITCH_STATUS_SUCCESS) ? SWITCH_TRUE : SWITCH_FALSE;
        }
 
        if (io_mutex) switch_mutex_lock(io_mutex);