提交 49c2d065 authored 作者: Ken Rice's avatar Ken Rice

White space cleanup

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7765 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 64630516
......@@ -142,15 +142,11 @@ static switch_bool_t limit_execute_sql_callback(switch_mutex_t *mutex,
switch_odbc_handle_callback_exec(globals.master_odbc, sql, callback, pdata);
} else {
#endif
if (!(db = switch_core_db_open_file(globals.dbname))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Opening DB %s\n", globals.dbname);
goto end;
}
switch_core_db_exec(db, sql, callback, pdata, &errmsg);
if (errmsg) {
......@@ -161,20 +157,15 @@ static switch_bool_t limit_execute_sql_callback(switch_mutex_t *mutex,
if (db) {
switch_core_db_close(db);
}
#ifdef SWITCH_HAVE_ODBC
}
#endif
end:
if (mutex) {
switch_mutex_unlock(mutex);
}
return ret;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论