diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-27 01:52:46 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-27 01:52:46 +0800 |
commit | fc4a128e1360ba9b3098656b35721323f173838f (patch) | |
tree | dca352ee376bdf37159386bf02b5e5aee7d7986f /mbbsd/emaildb.c | |
parent | d1f3e1991d8a79317f421125f5bb61e1c5d79474 (diff) | |
download | pttbbs-fc4a128e1360ba9b3098656b35721323f173838f.tar pttbbs-fc4a128e1360ba9b3098656b35721323f173838f.tar.gz pttbbs-fc4a128e1360ba9b3098656b35721323f173838f.tar.bz2 pttbbs-fc4a128e1360ba9b3098656b35721323f173838f.tar.lz pttbbs-fc4a128e1360ba9b3098656b35721323f173838f.tar.xz pttbbs-fc4a128e1360ba9b3098656b35721323f173838f.tar.zst pttbbs-fc4a128e1360ba9b3098656b35721323f173838f.zip |
- fix syntax for old c compiler.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4029 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/emaildb.c')
-rw-r--r-- | mbbsd/emaildb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/emaildb.c b/mbbsd/emaildb.c index fa057102..47a2c95b 100644 --- a/mbbsd/emaildb.c +++ b/mbbsd/emaildb.c @@ -97,6 +97,9 @@ int emaildb_update_email(char * userid, int userid_len, char * email, int email_ int ret = -1; pid_t pid = -1; + sqlite3 *Db = NULL; + sqlite3_stmt *Stmt = NULL; + #ifdef FORK_MODEL switch((pid = fork())) { @@ -113,9 +116,6 @@ int emaildb_update_email(char * userid, int userid_len, char * email, int email_ } #endif - sqlite3 *Db = NULL; - sqlite3_stmt *Stmt = NULL; - if (emaildb_open(&Db) != SQLITE_OK) goto end; |