git: a8fcc5892920 - stable/15 - ed(1): Preserve const qualifier on strchr(3) result

From: Faraz Vahedi <kfv_at_FreeBSD.org>
Date: Sat, 03 Oct 2026 15:22:09 UTC
The branch stable/15 has been updated by kfv:

URL: https://cgit.FreeBSD.org/src/commit/?id=a8fcc589292003b85fb49dc991df9715d99879ca

commit a8fcc589292003b85fb49dc991df9715d99879ca
Author:     Faraz Vahedi <kfv@FreeBSD.org>
AuthorDate: 2026-09-19 10:14:30 +0000
Commit:     Faraz Vahedi <kfv@FreeBSD.org>
CommitDate: 2026-10-03 15:20:10 +0000

    ed(1): Preserve const qualifier on strchr(3) result
    
    Reviewed by:    fuz
    Approved by:    fuz (mentor)
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D59773
    
    (cherry picked from commit 066fad8aefcb5bda77482c526757712ad0637aa9)
---
 bin/ed/io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/ed/io.c b/bin/ed/io.c
index b3262ea9e217..ccad9f9b1f85 100644
--- a/bin/ed/io.c
+++ b/bin/ed/io.c
@@ -297,7 +297,7 @@ put_tty_line(const char *s, int l, long n, int gflag)
 {
 	int col = 0;
 	int lc = 0;
-	char *cp;
+	const char *cp;
 
 	if (gflag & GNP) {
 		printf("%ld\t", n);