git: 9c184546d062 - stable/15 - ps(1): Preserve const qualifier on strchr(3) result
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 Oct 2026 15:22:06 UTC
The branch stable/15 has been updated by kfv:
URL: https://cgit.FreeBSD.org/src/commit/?id=9c184546d062a0cb6f70ddbb5f65f4adacaa8ad1
commit 9c184546d062a0cb6f70ddbb5f65f4adacaa8ad1
Author: Faraz Vahedi <kfv@FreeBSD.org>
AuthorDate: 2026-09-15 16:12:14 +0000
Commit: Faraz Vahedi <kfv@FreeBSD.org>
CommitDate: 2026-10-03 15:17:57 +0000
ps(1): Preserve const qualifier on strchr(3) result
Reviewed by: fuz, dteske
Approved by: fuz (mentor), dteske (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D59666
(cherry picked from commit d10e39d489a63cc034a1250d33e39743058639c2)
---
bin/ps/ps.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
index 94218f8cb2aa..8034e1286e8a 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -1436,7 +1436,8 @@ static char *
kludge_oldps_options(const char *optlist, char *origval, const char *nextarg)
{
size_t len;
- char *argp, *cp, *newopts, *ns, *optp, *pidp;
+ char *argp, *cp, *newopts, *ns, *pidp;
+ const char *optp;
/*
* See if the original value includes any option which takes an