git: 4c4416d9ec0f - main - sh(1): Preserve const qualifier on strchr(3) result
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 25 Nov 2026 09:55:49 UTC
The branch main has been updated by kfv:
URL: https://cgit.FreeBSD.org/src/commit/?id=4c4416d9ec0f6bf4ad98adcb4ce0899179746246
commit 4c4416d9ec0f6bf4ad98adcb4ce0899179746246
Author: Amir Shakeri <amirmuhammadshk@gmail.com>
AuthorDate: 2026-11-19 19:07:23 +0000
Commit: Faraz Vahedi <kfv@FreeBSD.org>
CommitDate: 2026-11-25 09:52:49 +0000
sh(1): Preserve const qualifier on strchr(3) result
Signed-off-by: Amir Shakeri <amirmuhammadshk@gmail.com>
Reviewed by: kfv, dteske
Approved by: dteske (mentor)
MFC after: 1 week
Pull Request: https://github.com/freebsd/freebsd-src/pull/2574
---
bin/sh/parser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index f6ef8d807704..5dcf928b84e1 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -1617,7 +1617,7 @@ parsesub: {
int subtype;
int typeloc;
int flags;
- char *p;
+ const char *p;
static const char types[] = "}-+?=";
int linno;
int length;