aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaraz Vahedi <kfv@FreeBSD.org>2026-09-15 16:12:14 +0000
committerFaraz Vahedi <kfv@FreeBSD.org>2026-09-15 16:12:14 +0000
commitd10e39d489a63cc034a1250d33e39743058639c2 (patch)
treec241040d09ee4c0a23af03d682da8d50fde6ea74
parent3968a8759027b9bb225b439e47f077b3f5b1171f (diff)
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
-rw-r--r--bin/ps/ps.c3
1 files changed, 2 insertions, 1 deletions
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