From 28465baaf036b1850892b050b1d72364f8804009 Mon Sep 17 00:00:00 2001 From: das Date: Sat, 28 Feb 2009 05:15:02 +0000 Subject: 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. --- lib/libc/string/strlcat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/string/strlcat.c') diff --git a/lib/libc/string/strlcat.c b/lib/libc/string/strlcat.c index feeac3b..2d13be7 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; -- cgit v1.1