mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-27 07:34:44 +02:00
configure sorts the config.h defines alphabetically,
so change DGL_SQLITE_DB to USE_SQLITE_DB so it's next to USE_SQLITE3. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@386 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
6dbf5f4728
commit
19a66fc451
@ -86,7 +86,7 @@ AC_ARG_WITH(sqlite-db,
|
||||
[AC_HELP_STRING([--with-sqlite-db=PATH], [Define the path and filename of the SQLite database.])],
|
||||
[dgl_sqlite_db=$withval], [dgl_sqlite_db="/dgldir/dgamelaunch.db"])
|
||||
|
||||
AC_DEFINE_UNQUOTED(DGL_SQLITE_DB, "$dgl_sqlite_db", [Path and filename of the SQLite database.])
|
||||
AC_DEFINE_UNQUOTED(USE_SQLITE_DB, "$dgl_sqlite_db", [Path and filename of the SQLite database.])
|
||||
|
||||
|
||||
|
||||
|
@ -1318,7 +1318,7 @@ userexist (char *cname, int isnew)
|
||||
|
||||
qbuf = sqlite3_mprintf("select * from dglusers where username like '%q' limit 1", tmpbuf);
|
||||
|
||||
ret = sqlite3_open(DGL_SQLITE_DB, &db); /* FIXME: use globalconfig->passwd? */
|
||||
ret = sqlite3_open(USE_SQLITE_DB, &db); /* FIXME: use globalconfig->passwd? */
|
||||
if (ret) {
|
||||
sqlite3_close(db);
|
||||
graceful_exit(109);
|
||||
@ -1543,7 +1543,7 @@ writefile (int requirenew)
|
||||
qbuf = sqlite3_mprintf("update dglusers set username='%q', email='%q', env='%q', password='%q', flags=%li where id=%i", me->username, me->email, me->env, me->password, me->flags, me->id);
|
||||
}
|
||||
|
||||
ret = sqlite3_open(DGL_SQLITE_DB, &db); /* FIXME: use globalconfig->passwd? */
|
||||
ret = sqlite3_open(USE_SQLITE_DB, &db); /* FIXME: use globalconfig->passwd? */
|
||||
if (ret) {
|
||||
sqlite3_close(db);
|
||||
graceful_exit(107);
|
||||
|
Loading…
x
Reference in New Issue
Block a user