aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/string/strndup_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string/strndup_r.c')
-rw-r--r--newlib/libc/string/strndup_r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/string/strndup_r.c b/newlib/libc/string/strndup_r.c
index c8ec072..3c7e8ee 100644
--- a/newlib/libc/string/strndup_r.c
+++ b/newlib/libc/string/strndup_r.c
@@ -5,10 +5,10 @@
char *
_DEFUN (_strndup_r, (reent_ptr, str, n),
struct _reent *reent_ptr,
- _CONST char *str,
+ const char *str,
size_t n)
{
- _CONST char *ptr = str;
+ const char *ptr = str;
size_t len;
char *copy;