[asterisk-commits] twilson: branch twilson/sqlite_astdb r323152 - /team/twilson/sqlite_astdb/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jun 13 11:39:44 CDT 2011
Author: twilson
Date: Mon Jun 13 11:39:42 2011
New Revision: 323152
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=323152
Log:
Remove some debugging aborts
Modified:
team/twilson/sqlite_astdb/main/db.c
Modified: team/twilson/sqlite_astdb/main/db.c
URL: http://svnview.digium.com/svn/asterisk/team/twilson/sqlite_astdb/main/db.c?view=diff&rev=323152&r1=323151&r2=323152
==============================================================================
--- team/twilson/sqlite_astdb/main/db.c (original)
+++ team/twilson/sqlite_astdb/main/db.c Mon Jun 13 11:39:42 2011
@@ -121,7 +121,6 @@
if (sqlite3_open_v2(dbname, astdb, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_FULLMUTEX, NULL) != SQLITE_OK) {
ast_log(LOG_WARNING, "Unable to open Asterisk database '%s': %s\n", "/var/lib/asterisk/astdb.sqlite3", sqlite3_errmsg(*astdb));
sqlite3_close(*astdb);
- abort();
return -1;
}
return 0;
@@ -143,7 +142,6 @@
if (!createStmt) {
if (sqlite3_prepare_v2(astdb, createSQL, sizeof(createSQL), &createStmt, NULL) != SQLITE_OK) {
ast_log(LOG_WARNING, "Couldn't prepare statement to create astdb table: %s\n", sqlite3_errmsg(astdb));
- abort();
return -1;
}
}
@@ -151,7 +149,6 @@
if (sqlite3_step(createStmt) != SQLITE_DONE) {
ast_log(LOG_WARNING, "Couldn't create astdb table: %s\n", sqlite3_errmsg(astdb));
sqlite3_reset(createStmt);
- abort();
return -1;
}
More information about the asterisk-commits
mailing list