]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[1/3] gcc-4.5: Fix enum type mismatches in switch_core_sqldb.c.
authorStefan Knoblich <s.knoblich@axsentis.de>
Sat, 17 Apr 2010 11:13:25 +0000 (11:13 +0000)
committerStefan Knoblich <s.knoblich@axsentis.de>
Sat, 17 Apr 2010 11:13:25 +0000 (11:13 +0000)
src/switch_core_sqldb.c

index 0d6ac3d15e3741540c7687a3d78335b2c26b6354..530d7008737b5b71a781becb26e43737484867b9 100644 (file)
@@ -311,7 +311,7 @@ SWITCH_DECLARE(switch_status_t) _switch_cache_db_get_db_handle(switch_cache_db_h
 
                                if ((odbc_dbh = switch_odbc_handle_new(connection_options->odbc_options.dsn,
                                                                                                           connection_options->odbc_options.user, connection_options->odbc_options.pass))) {
-                                       if (switch_odbc_handle_connect(odbc_dbh) != SWITCH_STATUS_SUCCESS) {
+                                       if (switch_odbc_handle_connect(odbc_dbh) != SWITCH_ODBC_SUCCESS) {
                                                switch_odbc_handle_destroy(&odbc_dbh);
                                        }
                                }
@@ -386,7 +386,7 @@ static switch_status_t switch_cache_db_execute_sql_real(switch_cache_db_handle_t
        case SCDB_TYPE_ODBC:
                {
                        switch_odbc_statement_handle_t stmt = NULL;
-                       if ((status = switch_odbc_handle_exec(dbh->native_handle.odbc_dbh, sql, &stmt, NULL)) != SWITCH_ODBC_SUCCESS) {
+                       if ((status = switch_odbc_handle_exec(dbh->native_handle.odbc_dbh, sql, &stmt, NULL)) != SWITCH_STATUS_SUCCESS) {
                                errmsg = switch_odbc_handle_get_error(dbh->native_handle.odbc_dbh, stmt);
                        }
                        switch_odbc_statement_handle_free(&stmt);