git: 40f4174d62aa - stable/15 - jail(8): Preserve const qualifier on strchr(3) results
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 Oct 2026 15:22:12 UTC
The branch stable/15 has been updated by kfv:
URL: https://cgit.FreeBSD.org/src/commit/?id=40f4174d62aa4c89730ec7adff1245a5626acd88
commit 40f4174d62aa4c89730ec7adff1245a5626acd88
Author: Faraz Vahedi <kfv@FreeBSD.org>
AuthorDate: 2026-09-22 19:04:32 +0000
Commit: Faraz Vahedi <kfv@FreeBSD.org>
CommitDate: 2026-10-03 15:20:57 +0000
jail(8): Preserve const qualifier on strchr(3) results
Reviewed by: fuz, dteske
Approved by: fuz (mentor), dteske (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D59876
(cherry picked from commit ab636e421d318a1175450d5652d8460dd2c48b76)
---
usr.sbin/jail/config.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/usr.sbin/jail/config.c b/usr.sbin/jail/config.c
index cc05c2916ca0..f9a106d7d89d 100644
--- a/usr.sbin/jail/config.c
+++ b/usr.sbin/jail/config.c
@@ -371,8 +371,8 @@ add_param(struct cfjail *j, const struct cfparam *p, enum intparam ipnum,
struct cfparam *dp, *np;
struct cfstring *s, *ns;
struct cfvar *v, *nv;
- const char *name;
- char *cs, *tname;
+ const char *cs, *name;
+ char *tname;
unsigned flags;
if (j == NULL) {
@@ -832,7 +832,7 @@ import_params(struct cfjail *j)
int
equalopts(const char *opt1, const char *opt2)
{
- char *p;
+ const char *p;
/* "opt" vs. "opt" or "noopt" vs. "noopt" */
if (strcmp(opt1, opt2) == 0)