summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/strcat.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/strcat.c
parentsync (diff)
downloadwireguard-openbsd-a26aa41994e8a6961f009870b31f84fec938f9c8.tar.xz
wireguard-openbsd-a26aa41994e8a6961f009870b31f84fec938f9c8.zip
ansi and some missing protos
Diffstat (limited to 'sys/lib/libkern/strcat.c')
-rw-r--r--sys/lib/libkern/strcat.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/lib/libkern/strcat.c b/sys/lib/libkern/strcat.c
index c09afa4ee48..88cfad0cfb7 100644
--- a/sys/lib/libkern/strcat.c
+++ b/sys/lib/libkern/strcat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strcat.c,v 1.7 2003/06/02 23:28:08 millert Exp $ */
+/* $OpenBSD: strcat.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: @(#)strcat.c 5.6 (Berkeley) 2/24/91";*/
-static char *rcsid = "$OpenBSD: strcat.c,v 1.7 2003/06/02 23:28:08 millert Exp $";
+static char *rcsid = "$OpenBSD: strcat.c,v 1.8 2004/08/07 00:38:33 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#if !defined(_KERNEL) && !defined(_STANDALONE)
@@ -43,13 +43,13 @@ static char *rcsid = "$OpenBSD: strcat.c,v 1.7 2003/06/02 23:28:08 millert Exp $
__warn_references(strcat, "warning: strcat() is often misused, please use strlcpy()");
char *
-strcat(s, append)
- register char *s;
- register const char *append;
+strcat(char *s, const char *append)
{
char *save = s;
- for (; *s; ++s);
- while ((*s++ = *append++) != '\0');
+ for (; *s; ++s)
+ ;
+ while ((*s++ = *append++) != '\0')
+ ;
return(save);
}