string: Add missing const
PATCH 1/1 string: Add missing const
This pointer is derived from other const pointers.
Signed-off-by Alejandro Colomar <[email protected]>
---
Hi,
This was found while changing some <linux/string.h> APIs to preserve the const qualifier in the return type.
Have a lovely night!
Alex
lib/tests/string_kunit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/tests/string_kunit.c +1 -1
@@ -233,7 +233,7 @@ static void string_test_strnchr(struct kunit *test) {const char *test_string ="abcdefghijkl" ;const char *empty_string ="" ; -char *result; +const char *result;int i, j;for (i =0 ; i <strlen (test_string) +1 ; i++) {
Signature · 1 line
2.55.0