aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/string/memccpy.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-07-23 07:05:31 +0000
committerCorinna Vinschen <corinna@vinschen.de>2013-07-23 07:05:31 +0000
commitb143d094ee5afafaf232316b23e5c0261d6f448a (patch)
tree725cafdb7f7743e8a94f202fdf00c523f1081092 /newlib/libc/string/memccpy.c
parent9cb407b52458fdf26b531fdf943f7a0f222a472a (diff)
downloadnewlib-b143d094ee5afafaf232316b23e5c0261d6f448a.zip
newlib-b143d094ee5afafaf232316b23e5c0261d6f448a.tar.gz
newlib-b143d094ee5afafaf232316b23e5c0261d6f448a.tar.bz2
* libc/sys/linux/include/netdb.h, libc/sys/linux/net/getaddrinfo.c,
libc/sys/linux/net/getnameinfo.c: Add restrict keyword to getnameinfo() and getaddrinfo() to increase standards compliance and match glibc. * libc/include/string.h, libc/string/memccpy.c, libc/string/memcpy.c, libc/string/stpcpy.c, libc/string/stpncpy.c, libc/string/strcat.c, libc/string/strncat.c, libc/string/strncpy.c, libc/string/strtok.c, libc/string/strtok_r.c, libc/string/strxfrm.c libc/machine/microblaze/strcpy.c, libc/machine/xscale/memcpy.c, libc/machine/cris/memcpy.c: Add __restrict to prototype to increase standards compliance.
Diffstat (limited to 'newlib/libc/string/memccpy.c')
-rw-r--r--newlib/libc/string/memccpy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/string/memccpy.c b/newlib/libc/string/memccpy.c
index a6f45e8..dded857 100644
--- a/newlib/libc/string/memccpy.c
+++ b/newlib/libc/string/memccpy.c
@@ -4,7 +4,7 @@ FUNCTION
ANSI_SYNOPSIS
#include <string.h>
- void* memccpy(void *<[out]>, const void *<[in]>,
+ void* memccpy(void *restrict <[out]>, const void *restrict <[in]>,
int <[endchar]>, size_t <[n]>);
TRAD_SYNOPSIS
@@ -64,8 +64,8 @@ PORTABILITY
_PTR
_DEFUN (memccpy, (dst0, src0, endchar, len0),
- _PTR dst0 _AND
- _CONST _PTR src0 _AND
+ _PTR __restrict dst0 _AND
+ _CONST _PTR __restrict src0 _AND
int endchar0 _AND
size_t len0)
{