aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/string/strncpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string/strncpy.c')
-rw-r--r--newlib/libc/string/strncpy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/newlib/libc/string/strncpy.c b/newlib/libc/string/strncpy.c
index 91b2745..abbe43b 100644
--- a/newlib/libc/string/strncpy.c
+++ b/newlib/libc/string/strncpy.c
@@ -61,12 +61,12 @@ QUICKREF
char *
_DEFUN (strncpy, (dst0, src0),
char *__restrict dst0,
- _CONST char *__restrict src0,
+ const char *__restrict src0,
size_t count)
{
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
char *dscan;
- _CONST char *sscan;
+ const char *sscan;
dscan = dst0;
sscan = src0;
@@ -82,9 +82,9 @@ _DEFUN (strncpy, (dst0, src0),
return dst0;
#else
char *dst = dst0;
- _CONST char *src = src0;
+ const char *src = src0;
long *aligned_dst;
- _CONST long *aligned_src;
+ const long *aligned_src;
/* If SRC and DEST is aligned and count large enough, then copy words. */
if (!UNALIGNED (src, dst) && !TOO_SMALL (count))