summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/strcpy.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-08-07 00:38:32 +0000
committerderaadt <deraadt@openbsd.org>2004-08-07 00:38:32 +0000
commita26aa41994e8a6961f009870b31f84fec938f9c8 (patch)
treeb69a5bc2e1eeaca538d3783d02cfd53f88cb19db /sys/lib/libkern/strcpy.c
parentsync (diff)
downloadwireguard-openbsd-a26aa41994e8a6961f009870b31f84fec938f9c8.tar.xz
wireguard-openbsd-a26aa41994e8a6961f009870b31f84fec938f9c8.zip
ansi and some missing protos
Diffstat (limited to 'sys/lib/libkern/strcpy.c')
-rw-r--r--sys/lib/libkern/strcpy.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/lib/libkern/strcpy.c b/sys/lib/libkern/strcpy.c
index c68859f4540..e7dc46ab90a 100644
--- a/sys/lib/libkern/strcpy.c
+++ b/sys/lib/libkern/strcpy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strcpy.c,v 1.7 2003/06/02 23:28:08 millert Exp $ */
+/* $OpenBSD: strcpy.c,v 1.8 2004/08/07 00:38:33 deraadt Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
@@ -31,7 +31,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)strcpy.c 5.7 (Berkeley) 2/24/91";*/
-static char *rcsid = "$OpenBSD: strcpy.c,v 1.7 2003/06/02 23:28:08 millert Exp $";
+static char *rcsid = "$OpenBSD: strcpy.c,v 1.8 2004/08/07 00:38:33 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#if !defined(_KERNEL) && !defined(_STANDALONE)
@@ -43,9 +43,7 @@ static char *rcsid = "$OpenBSD: strcpy.c,v 1.7 2003/06/02 23:28:08 millert Exp $
__warn_references(strcpy, "warning: strcpy() is often misused, please use strlcpy()");
char *
-strcpy(to, from)
- register char *to;
- register const char *from;
+strcpy(char *to, const char *from)
{
char *save = to;