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 /include/string.h | |
parent | dce7ffd6df4072ef4f671f0684e05581c1079168 (diff) | |
download | src-e00a6d21eb36d7888bb5bbdc2d24904211af04c8.tar.gz src-e00a6d21eb36d7888bb5bbdc2d24904211af04c8.zip |
Add restrict qualifiers to the parameters to strlcpy() and strlcat().
The annotation mainly just serves as a hint that they're not intended
for use with overlapping strings.
Notes
Notes:
svn path=/head/; revision=189133
Diffstat (limited to 'include/string.h')
-rw-r--r-- | include/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/string.h b/include/string.h index 75e85580d21b..91007f130482 100644 --- a/include/string.h +++ b/include/string.h @@ -85,8 +85,8 @@ char *strerror(int); int strerror_r(int, char *, size_t); #endif #if __BSD_VISIBLE -size_t strlcat(char *, const char *, size_t); -size_t strlcpy(char *, const char *, size_t); +size_t strlcat(char * __restrict, const char * __restrict, size_t); +size_t strlcpy(char * __restrict, const char * __restrict, size_t); #endif size_t strlen(const char *) __pure; #if __BSD_VISIBLE |