]> skyeroc.xyz Git - dgamelaunch/commitdiff
configure sorts the config.h defines alphabetically,
authorPasi Kallinen <paxed@alt.org>
Sun, 30 Dec 2007 08:44:02 +0000 (08:44 +0000)
committerPasi Kallinen <paxed@alt.org>
Sun, 30 Dec 2007 08:44:02 +0000 (08:44 +0000)
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

configure.ac
dgamelaunch.c

index ddcbb6213e25a9810730dae61e699065cb1b8806..604c82eb7b835e2100e98caa30c63fb070d1bce7 100644 (file)
@@ -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.])
 
 
 
index 276cdfb5137f1adec844432a7f800e1574bc65a8..72e4577cf0cd131e17e9147683b7f4d53e6353c7 100644 (file)
@@ -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);