aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2024-08-25 11:59:29 +0000
committerstephan <stephan@noemail.net>2024-08-25 11:59:29 +0000
commit87ebadbf4e0349b1987d89a2c8a9b3638a88667c (patch)
tree94d19bb0be704a1617e9769270072af801fa6d49 /src
parentcc902fd25eecf4761143f26463a6f30c2d6999d9 (diff)
downloadsqlite-87ebadbf4e0349b1987d89a2c8a9b3638a88667c.tar.gz
sqlite-87ebadbf4e0349b1987d89a2c8a9b3638a88667c.zip
shell.c.in: use eputz/oputz() instead of eputf/oputf() where appropriate to avoid compilation errors in -std=c99 mode (namely wasm builds).
FossilOrigin-Name: 9ef8317faebc29d016bdf2e8c678fb21ca2cfa95272f1f18b461fcaf0e220ac5
Diffstat (limited to 'src')
-rw-r--r--src/shell.c.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shell.c.in b/src/shell.c.in
index ab17f46e1..db10d21b8 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -283,7 +283,7 @@ INCLUDE ../ext/consio/console_io.c
#else
/* For Fiddle, all console handling and emit redirection is omitted. */
/* These next 3 macros are for emitting formatted output. When complaints
- * from the WASM build are issued for non-formatted output, (when a mere
+ * from the WASM build are issued for non-formatted output, when a mere
* string literal is to be emitted, the ?putz(z) forms should be used.
* (This permits compile-time checking of format string / argument mismatch.)
*/
@@ -11070,11 +11070,11 @@ static int do_meta_command(char *zLine, ShellState *p){
}
if( jj>=ArraySize(aLabel) ){
eputf("Error: no such optimization: \"%s\"\n", zLabel);
- eputf("Should be one of:");
+ eputz("Should be one of:");
for(jj=0; jj<ArraySize(aLabel); jj++){
eputf(" %s", aLabel[jj].zLabel);
}
- eputf("\n");
+ eputz("\n");
rc = 1;
goto meta_command_exit;
}
@@ -11091,9 +11091,9 @@ static int do_meta_command(char *zLine, ShellState *p){
curOpt = ~newOpt;
}
if( newOpt==0 ){
- oputf("+All\n");
+ oputz("+All\n");
}else if( newOpt==0xffffffff ){
- oputf("-All\n");
+ oputz("-All\n");
}else{
int jj;
for(jj=0; jj<ArraySize(aLabel); jj++){