Module Name: src
Committed By: kre
Date: Fri Jul 12 04:45:13 UTC 2024
Modified Files:
src/bin/sh: show.c
Log Message:
Meaningless gcc inspired change.
This is in code only compiled in DEBUG builds (so not part of any
normal NetBSD build).
NFC
To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/bin/sh/show.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/sh/show.c
diff -u src/bin/sh/show.c:1.55 src/bin/sh/show.c:1.56
--- src/bin/sh/show.c:1.55 Fri Apr 7 10:34:13 2023
+++ src/bin/sh/show.c Fri Jul 12 04:45:12 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: show.c,v 1.55 2023/04/07 10:34:13 kre Exp $ */
+/* $NetBSD: show.c,v 1.56 2024/07/12 04:45:12 kre Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)show.c 8.3 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: show.c,v 1.55 2023/04/07 10:34:13 kre Exp $");
+__RCSID("$NetBSD: show.c,v 1.56 2024/07/12 04:45:12 kre Exp $");
#endif
#endif /* not lint */
@@ -645,7 +645,7 @@ sharg(union node *arg, TFILE *fp)
for (p = arg->narg.text ; *p ; p++) {
switch (*p) {
case CTLESC:
- if (BASESYNTAX[p[1]] != CCTL)
+ if (BASESYNTAX[(int)p[1]] != CCTL)
trace_putc('\\', fp);
trace_putc(*++p, fp);
break;