diff options
| author | David Schultz <das@FreeBSD.org> | 2009-02-28 05:15:02 +0000 |
|---|---|---|
| committer | David Schultz <das@FreeBSD.org> | 2009-02-28 05:15:02 +0000 |
| commit | e00a6d21eb36d7888bb5bbdc2d24904211af04c8 (patch) | |
| tree | 7e902fb5273a6c2db8f3abbe37e146d679621875 /lib/libc | |
| parent | dce7ffd6df4072ef4f671f0684e05581c1079168 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/string/strlcat.c | 2 | ||||
| -rw-r--r-- | lib/libc/string/strlcpy.3 | 4 | ||||
| -rw-r--r-- | lib/libc/string/strlcpy.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/string/strlcat.c b/lib/libc/string/strlcat.c index feeac3bb11c6..2d13be77f131 100644 --- a/lib/libc/string/strlcat.c +++ b/lib/libc/string/strlcat.c @@ -30,7 +30,7 @@ __FBSDID("$FreeBSD$"); * If retval >= siz, truncation occurred. */ size_t -strlcat(char *dst, const char *src, size_t siz) +strlcat(char * __restrict dst, const char * __restrict src, size_t siz) { char *d = dst; const char *s = src; diff --git a/lib/libc/string/strlcpy.3 b/lib/libc/string/strlcpy.3 index 88af06db1c61..aaef572aae2a 100644 --- a/lib/libc/string/strlcpy.3 +++ b/lib/libc/string/strlcpy.3 @@ -39,9 +39,9 @@ .Sh SYNOPSIS .In string.h .Ft size_t -.Fn strlcpy "char *dst" "const char *src" "size_t size" +.Fn strlcpy "char * restrict dst" "const char * restrict src" "size_t size" .Ft size_t -.Fn strlcat "char *dst" "const char *src" "size_t size" +.Fn strlcat "char * restrict dst" "const char * restrict src" "size_t size" .Sh DESCRIPTION The .Fn strlcpy diff --git a/lib/libc/string/strlcpy.c b/lib/libc/string/strlcpy.c index 187bdb71f8ba..451b6df7980d 100644 --- a/lib/libc/string/strlcpy.c +++ b/lib/libc/string/strlcpy.c @@ -28,7 +28,7 @@ __FBSDID("$FreeBSD$"); * Returns strlen(src); if retval >= siz, truncation occurred. */ size_t -strlcpy(char *dst, const char *src, size_t siz) +strlcpy(char * __restrict dst, const char * __restrict src, size_t siz) { char *d = dst; const char *s = src; |
