summaryrefslogtreecommitdiffstats
path: root/sys/libkern/strcpy.c
diff options
context:
space:
mode:
authorhsu <hsu@FreeBSD.org>2003-02-10 00:36:27 +0000
committerhsu <hsu@FreeBSD.org>2003-02-10 00:36:27 +0000
commit3a6e2d86177b1601ed3f2aa658b7505796d1f279 (patch)
tree5f88293aa12629383c47bbf7acd276f5931273cb /sys/libkern/strcpy.c
parent2daf7453dde98804a70cc16585f80bd268c9a87e (diff)
downloadFreeBSD-src-3a6e2d86177b1601ed3f2aa658b7505796d1f279.zip
FreeBSD-src-3a6e2d86177b1601ed3f2aa658b7505796d1f279.tar.gz
Add restrict keyword to string functions.
Reviewed by: bde
Diffstat (limited to 'sys/libkern/strcpy.c')
-rw-r--r--sys/libkern/strcpy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/libkern/strcpy.c b/sys/libkern/strcpy.c
index 3aed2d0..dd25c60 100644
--- a/sys/libkern/strcpy.c
+++ b/sys/libkern/strcpy.c
@@ -36,9 +36,7 @@
#include <sys/libkern.h>
char *
-strcpy(to, from)
- register char *to;
- register const char *from;
+strcpy(char * __restrict to, const char * __restrict from)
{
char *save = to;
OpenPOWER on IntegriCloud