From: Seven Du Date: Wed, 12 Nov 2014 05:31:30 +0000 (+0800) Subject: fix compiler warning on unmatched return type X-Git-Tag: v1.4.14~2^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07030c63f0448aae189759eb90001bcf65de75a3;p=thirdparty%2Ffreeswitch.git fix compiler warning on unmatched return type --- diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index adcfbcf300..508b68643d 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -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);