aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/string/strnlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string/strnlen.c')
-rw-r--r--newlib/libc/string/strnlen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/string/strnlen.c b/newlib/libc/string/strnlen.c
index 4978f72..42f460f 100644
--- a/newlib/libc/string/strnlen.c
+++ b/newlib/libc/string/strnlen.c
@@ -31,10 +31,10 @@ PORTABILITY
size_t
_DEFUN (strnlen, (str, n),
- _CONST char *str,
+ const char *str,
size_t n)
{
- _CONST char *start = str;
+ const char *start = str;
while (n-- > 0 && *str)
str++;