x86/boot: don't cast away const-ness

While the general C library strchr() has to do so, the early boot cmdline
parsing has no such requirement.

No functional change.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger@xenproject.org>
This commit is contained in:
Jan Beulich committed 2026-09-07 10:40:50 +02:00
1 parent d1a5335baa
commit 1e204d768b
1 file changed
+2 -2
+2 -2
View File
@@ -77,12 +77,12 @@ static int strncmp(const char *cs, const char *ct, size_t count)
return 0;
}
static char *strchr(const char *s, int c)
static const char *strchr(const char *s, int c)
{
for ( ; *s != (char)c; ++s )
if ( *s == '\0' )
return NULL;
return (char *)s;
return s;
}
static size_t strspn(const char *s, const char *accept)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.