git: 5927c1bb31a4 - main - getty: const'ify search pointer.

Xin LI delphij at FreeBSD.org
Sun May 9 04:54:20 UTC 2021


The branch main has been updated by delphij:

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

commit 5927c1bb31a419a6a91ee7bba519f9288eeecc9b
Author:     Xin LI <delphij at FreeBSD.org>
AuthorDate: 2021-05-09 04:52:41 +0000
Commit:     Xin LI <delphij at FreeBSD.org>
CommitDate: 2021-05-09 04:53:29 +0000

    getty: const'ify search pointer.
    
    No functional change.
    
    MFC after:      2 weeks
---
 libexec/getty/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libexec/getty/main.c b/libexec/getty/main.c
index 743a0508c561..e1420586679b 100644
--- a/libexec/getty/main.c
+++ b/libexec/getty/main.c
@@ -735,7 +735,8 @@ static void
 putf(const char *cp)
 {
 	time_t t;
-	char *slash, db[100];
+	char db[100];
+	const char *slash;
 
 	static struct utsname kerninfo;
 


More information about the dev-commits-src-all mailing list