diff options
author | Terry Wilson <twilson@digium.com> | 2011-07-07 16:50:54 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2011-07-07 16:50:54 +0000 |
commit | f0c8b18c18dc638bd5851b086d9d9f17683b9e98 (patch) | |
tree | 36c61ff8a9d54f1b97dc4227c48baca0950e76bd /utils | |
parent | c545e3b1c585f02efcdabe0324ce5dc3c13a2285 (diff) |
Use older functions out of deference to older distros
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@326750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils')
-rw-r--r-- | utils/astdb2sqlite3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/astdb2sqlite3.c b/utils/astdb2sqlite3.c index 254141744..b0751dc3b 100644 --- a/utils/astdb2sqlite3.c +++ b/utils/astdb2sqlite3.c @@ -134,7 +134,7 @@ static int convert_bdb_to_sqlite3(const char *bdb_dbname) static int init_stmt(sqlite3_stmt **stmt, const char *sql, size_t len) { - if (sqlite3_prepare_v2(astdb, sql, len, stmt, NULL) != SQLITE_OK) { + if (sqlite3_prepare(astdb, sql, len, stmt, NULL) != SQLITE_OK) { fprintf(stderr, "Couldn't prepare statement '%s': %s\n", sql, sqlite3_errmsg(astdb)); return -1; } @@ -171,7 +171,7 @@ static int init_statements(void) static int db_open(const char *dbname) { - if (sqlite3_open_v2(dbname, &astdb, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_NOMUTEX, NULL) != SQLITE_OK) { + if (sqlite3_open(dbname, &astdb) != SQLITE_OK) { fprintf(stderr, "Unable to open Asterisk database '%s': %s\n", dbname, sqlite3_errmsg(astdb)); sqlite3_close(astdb); return -1; |