git: 1ddd5b301d27 - main - pax(1): Preserve const qualifier on strchr(3) result
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 17 Nov 2026 09:29:52 UTC
The branch main has been updated by kfv:
URL: https://cgit.FreeBSD.org/src/commit/?id=1ddd5b301d273b62b2c0fa3c60c8cae8c9072dc3
commit 1ddd5b301d273b62b2c0fa3c60c8cae8c9072dc3
Author: Amir Shakeri <amirmuhammadshk@gmail.com>
AuthorDate: 2026-11-16 12:41:38 +0000
Commit: Faraz Vahedi <kfv@FreeBSD.org>
CommitDate: 2026-11-17 09:10:34 +0000
pax(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/2565
---
bin/pax/getoldopt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/pax/getoldopt.c b/bin/pax/getoldopt.c
index 6b0e83c23a24..10e93c72b7c6 100644
--- a/bin/pax/getoldopt.c
+++ b/bin/pax/getoldopt.c
@@ -24,7 +24,7 @@ getoldopt(int argc, char **argv, const char *optstring)
static char *key; /* Points to next keyletter */
static char use_getopt; /* !=0 if argv[1][0] was '-' */
char c;
- char *place;
+ const char *place;
optarg = NULL;