aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2008-09-11 10:29:15 +0000
committerdanielk1977 <danielk1977@noemail.net>2008-09-11 10:29:15 +0000
commit55a25a1201e1ea491eefffcb9da92b5afea35cdb (patch)
treeb82180a320a06277dac3406d9b02956c938c94ac /src
parent67fd7a9a9828dc18d8ccdbc73ac4dc2946ff9f52 (diff)
downloadsqlite-55a25a1201e1ea491eefffcb9da92b5afea35cdb.tar.gz
sqlite-55a25a1201e1ea491eefffcb9da92b5afea35cdb.zip
Fix a couple of problems with variable initializations picked up by stricter compilers. (CVS 5691)
FossilOrigin-Name: f4293d148007515eaf8eb9738f62554a963abe8e
Diffstat (limited to 'src')
-rw-r--r--src/pager.c4
-rw-r--r--src/test1.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pager.c b/src/pager.c
index 68c80472b..6a4cbd1dc 100644
--- a/src/pager.c
+++ b/src/pager.c
@@ -18,7 +18,7 @@
** file simultaneously, or one process from reading the database while
** another is writing.
**
-** @(#) $Id: pager.c,v 1.488 2008/09/08 15:35:07 danielk1977 Exp $
+** @(#) $Id: pager.c,v 1.489 2008/09/11 10:29:16 danielk1977 Exp $
*/
#ifndef SQLITE_OMIT_DISKIO
#include "sqliteInt.h"
@@ -578,7 +578,7 @@ static void seekJournalHdr(Pager *pPager){
*/
static int zeroJournalHdr(Pager *pPager, int doTruncate){
int rc = SQLITE_OK;
- static const char zeroHdr[28] = {};
+ static const char zeroHdr[28] = {0};
if( pPager->journalOff ){
i64 iLimit = pPager->journalSizeLimit;
diff --git a/src/test1.c b/src/test1.c
index 1c76e7d51..722c09e75 100644
--- a/src/test1.c
+++ b/src/test1.c
@@ -13,7 +13,7 @@
** is not included in the SQLite library. It is used for automated
** testing of the SQLite library.
**
-** $Id: test1.c,v 1.324 2008/09/02 14:07:24 danielk1977 Exp $
+** $Id: test1.c,v 1.325 2008/09/11 10:29:16 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include "tcl.h"
@@ -3781,7 +3781,7 @@ static int test_stmt_int(
int col;
int (*xFunc)(sqlite3_stmt*, int);
- xFunc = (const void *(*)(sqlite3_stmt*, int))clientData;
+ xFunc = (int (*)(sqlite3_stmt*, int))clientData;
if( objc!=3 ){
Tcl_AppendResult(interp, "wrong # args: should be \"",
Tcl_GetString(objv[0]), " STMT column", 0);