Skip to content

Commit 5ba2ba9

Browse files
lib/string/strspn/: Add missing const
Closes: <#1218> Reported-by: Chris Hofstaedtler <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]>
1 parent 77eb67d commit 5ba2ba9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/string/strspn/strrcspn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ inline size_t strrcspn(const char *s, const char *reject);
2424
inline size_t
2525
strrcspn(const char *s, const char *reject)
2626
{
27-
char *p;
27+
const char *p;
2828

2929
p = strnul(s);
3030
while (p > s) {

lib/string/strspn/strrspn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ inline size_t strrspn_(const char *s, const char *accept);
2424
inline size_t
2525
strrspn_(const char *s, const char *accept)
2626
{
27-
char *p;
27+
const char *p;
2828

2929
p = strnul(s);
3030
while (p > s) {

0 commit comments

Comments
 (0)