diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-07-23 07:05:31 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-07-23 07:05:31 +0000 |
commit | b143d094ee5afafaf232316b23e5c0261d6f448a (patch) | |
tree | 725cafdb7f7743e8a94f202fdf00c523f1081092 /newlib/libc/string/strncat.c | |
parent | 9cb407b52458fdf26b531fdf943f7a0f222a472a (diff) | |
download | cygnal-b143d094ee5afafaf232316b23e5c0261d6f448a.tar.gz cygnal-b143d094ee5afafaf232316b23e5c0261d6f448a.tar.bz2 cygnal-b143d094ee5afafaf232316b23e5c0261d6f448a.zip |
* 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/strncat.c')
-rw-r--r-- | newlib/libc/string/strncat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/newlib/libc/string/strncat.c b/newlib/libc/string/strncat.c index 0f29247a8..d31a0302c 100644 --- a/newlib/libc/string/strncat.c +++ b/newlib/libc/string/strncat.c @@ -7,7 +7,8 @@ INDEX ANSI_SYNOPSIS #include <string.h> - char *strncat(char *<[dst]>, const char *<[src]>, size_t <[length]>); + char *strncat(char *<restrict [dst]>, const char *<restrict [src]>, + size_t <[length]>); TRAD_SYNOPSIS #include <string.h> @@ -65,8 +66,8 @@ QUICKREF char * _DEFUN (strncat, (s1, s2, n), - char *s1 _AND - _CONST char *s2 _AND + char *__restrict s1 _AND + _CONST char *__restrict s2 _AND size_t n) { #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) |