aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authordrh <>2023-01-13 18:20:40 +0000
committerdrh <>2023-01-13 18:20:40 +0000
commitbd8e3d7d0aaea59b5f4427692298879e91ef9060 (patch)
treedf31a44a1a6ae9b55b041f00e4421bc3e4546052 /ext
parentb28b5f348b950a3fea8ce89ba24d2c0fc6bd574b (diff)
downloadsqlite-bd8e3d7d0aaea59b5f4427692298879e91ef9060.tar.gz
sqlite-bd8e3d7d0aaea59b5f4427692298879e91ef9060.zip
Add missing "const" on variables in recent RBU fixes.
FossilOrigin-Name: 9b8dcd79050f9bfa745271f51377b38cfed4d8ce41a36b773a30799d69f7b943
Diffstat (limited to 'ext')
-rw-r--r--ext/rbu/sqlite3rbu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/rbu/sqlite3rbu.c b/ext/rbu/sqlite3rbu.c
index a1bf3c30b..2db66f67a 100644
--- a/ext/rbu/sqlite3rbu.c
+++ b/ext/rbu/sqlite3rbu.c
@@ -4588,7 +4588,7 @@ static int rbuVfsClose(sqlite3_file *pFile){
sqlite3_free(p->zDel);
if( p->openFlags & SQLITE_OPEN_MAIN_DB ){
- sqlite3_io_methods *pMeth = p->pReal->pMethods;
+ const sqlite3_io_methods *pMeth = p->pReal->pMethods;
rbuMainlistRemove(p);
rbuUnlockShm(p);
if( pMeth->iVersion>1 && pMeth->xShmUnmap ){
@@ -5125,7 +5125,7 @@ static int rbuVfsOpen(
rc = pRealVfs->xOpen(pRealVfs, zOpen, pFd->pReal, oflags, pOutFlags);
}
if( pFd->pReal->pMethods ){
- sqlite3_io_methods *pMeth = pFd->pReal->pMethods;
+ const sqlite3_io_methods *pMeth = pFd->pReal->pMethods;
/* The xOpen() operation has succeeded. Set the sqlite3_file.pMethods
** pointer and, if the file is a main database file, link it into the
** mutex protected linked list of all such files. */