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
This commit is contained in:
Faraz Vahedi committed 2026-09-22 22:34:32 +03:30
1 parent 26b3ff1f5c
commit ab636e421d
1 file changed
+3 -3
+3 -3
View File
@@ -373,8 +373,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) {
@@ -834,7 +834,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)