aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pcache1.c2
-rw-r--r--src/test_malloc.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pcache1.c b/src/pcache1.c
index 256e53a57..3f56d025e 100644
--- a/src/pcache1.c
+++ b/src/pcache1.c
@@ -65,7 +65,7 @@
** that is allocated when the page cache is created. The size of the local
** bulk allocation can be adjusted using
**
-** sqlite3_config(SQLITE_CONFIG_PAGECACHE, 0, 0, N).
+** sqlite3_config(SQLITE_CONFIG_PAGECACHE, (void*)0, 0, N).
**
** If N is positive, then N pages worth of memory are allocated using a single
** sqlite3Malloc() call and that memory is used for the first N pages allocated.
diff --git a/src/test_malloc.c b/src/test_malloc.c
index 3ab177dcb..a3ff9d205 100644
--- a/src/test_malloc.c
+++ b/src/test_malloc.c
@@ -910,7 +910,7 @@ static int test_config_scratch(
free(buf);
if( sz<0 ){
buf = 0;
- rc = sqlite3_config(SQLITE_CONFIG_SCRATCH, 0, 0, 0);
+ rc = sqlite3_config(SQLITE_CONFIG_SCRATCH, (void*)0, 0, 0);
}else{
buf = malloc( sz*N + 1 );
rc = sqlite3_config(SQLITE_CONFIG_SCRATCH, buf, sz, N);
@@ -957,7 +957,7 @@ static int test_config_pagecache(
Tcl_SetObjResult(interp, pRes);
if( sz<0 ){
- sqlite3_config(SQLITE_CONFIG_PAGECACHE, 0, 0, 0);
+ sqlite3_config(SQLITE_CONFIG_PAGECACHE, (void*)0, 0, 0);
}else{
buf = malloc( sz*N );
sqlite3_config(SQLITE_CONFIG_PAGECACHE, buf, sz, N);