diff options
author | stephan <stephan@noemail.net> | 2022-09-27 09:17:37 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-09-27 09:17:37 +0000 |
commit | 3d64548491f6e95854b843f978a4ada16eff614c (patch) | |
tree | 23fda2d6c089dcfd00799e6b96624688d18634f5 /ext/wasm/api/sqlite3-wasm.c | |
parent | 278d3faf1ffa6bbd14253865edba3e81631d0cb5 (diff) | |
download | sqlite-3d64548491f6e95854b843f978a4ada16eff614c.tar.gz sqlite-3d64548491f6e95854b843f978a4ada16eff614c.zip |
wasm/js: rename /persistent to /opfs to account for potential future persistent storage options. Minor flag-handling cleanups in the speedtest1 pages. Minor API tweaks in oo1.
FossilOrigin-Name: 4dc972a3656b2a9ec915bfb3f653136560c753ce4024c3f0d0d0c28f66db7a0a
Diffstat (limited to 'ext/wasm/api/sqlite3-wasm.c')
-rw-r--r-- | ext/wasm/api/sqlite3-wasm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/wasm/api/sqlite3-wasm.c b/ext/wasm/api/sqlite3-wasm.c index cf9a1a3db..8750d9b20 100644 --- a/ext/wasm/api/sqlite3-wasm.c +++ b/ext/wasm/api/sqlite3-wasm.c @@ -571,7 +571,7 @@ int sqlite3_wasm_vfs_unlink(const char * zName){ WASM_KEEP int sqlite3_wasm_init_wasmfs(const char *zMountPoint){ static backend_t pOpfs = 0; - if( !zMountPoint || !*zMountPoint ) zMountPoint = "/persistent"; + if( !zMountPoint || !*zMountPoint ) zMountPoint = "/opfs"; if( !pOpfs ){ pOpfs = wasmfs_create_opfs_backend(); if( pOpfs ){ @@ -595,7 +595,8 @@ int sqlite3_wasm_init_wasmfs(const char *zMountPoint){ } #else WASM_KEEP -int sqlite3_wasm_init_wasmfs(void){ +int sqlite3_wasm_init_wasmfs(const char *zUnused){ + if(zUnused){/*unused*/} return SQLITE_NOTFOUND; } #endif /* __EMSCRIPTEN__ && SQLITE_WASM_WASMFS */ |