From b143d094ee5afafaf232316b23e5c0261d6f448a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 23 Jul 2013 07:05:31 +0000 Subject: * 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. --- newlib/libc/string/strcat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'newlib/libc/string/strcat.c') diff --git a/newlib/libc/string/strcat.c b/newlib/libc/string/strcat.c index 411eadb85..1e4614991 100644 --- a/newlib/libc/string/strcat.c +++ b/newlib/libc/string/strcat.c @@ -7,7 +7,7 @@ INDEX ANSI_SYNOPSIS #include - char *strcat(char *<[dst]>, const char *<[src]>); + char *strcat(char *restrict <[dst]>, const char *restrict <[src]>); TRAD_SYNOPSIS #include @@ -61,8 +61,8 @@ QUICKREF char * _DEFUN (strcat, (s1, s2), - char *s1 _AND - _CONST char *s2) + char *__restrict s1 _AND + _CONST char *__restrict s2) { #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) char *s = s1; -- cgit v1.2.3