summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-06-11 21:08:29 +0000
committerderaadt <deraadt@openbsd.org>2003-06-11 21:08:29 +0000
commitca0998b1bc714e83faa35ddbfcf9ce2bed342ad5 (patch)
tree1e6dc576ce5b4ba82a2ad5bb8312cf0b85467d52 /lib/libc
parentansification; pval ok (diff)
downloadwireguard-openbsd-ca0998b1bc714e83faa35ddbfcf9ce2bed342ad5.tar.xz
wireguard-openbsd-ca0998b1bc714e83faa35ddbfcf9ce2bed342ad5.zip
ansification, pval ok
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/string/strcoll.c5
-rw-r--r--lib/libc/string/strspn.c10
2 files changed, 6 insertions, 9 deletions
diff --git a/lib/libc/string/strcoll.c b/lib/libc/string/strcoll.c
index d024f724448..9622b67281f 100644
--- a/lib/libc/string/strcoll.c
+++ b/lib/libc/string/strcoll.c
@@ -31,7 +31,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: strcoll.c,v 1.3 2003/06/02 20:18:38 millert Exp $";
+static char *rcsid = "$OpenBSD: strcoll.c,v 1.4 2003/06/11 21:08:29 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <string.h>
@@ -40,8 +40,7 @@ static char *rcsid = "$OpenBSD: strcoll.c,v 1.3 2003/06/02 20:18:38 millert Exp
* Compare strings according to LC_COLLATE category of current locale.
*/
int
-strcoll(s1, s2)
- const char *s1, *s2;
+strcoll(const char *s1, const char *s2)
{
/* LC_COLLATE is unimplemented, hence always "C" */
return (strcmp(s1, s2));
diff --git a/lib/libc/string/strspn.c b/lib/libc/string/strspn.c
index 50b7dbb095d..d51a8cd3e6c 100644
--- a/lib/libc/string/strspn.c
+++ b/lib/libc/string/strspn.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: strspn.c,v 1.3 2003/06/02 20:18:38 millert Exp $";
+static char *rcsid = "$OpenBSD: strspn.c,v 1.4 2003/06/11 21:08:29 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <string.h>
@@ -37,12 +37,10 @@ static char *rcsid = "$OpenBSD: strspn.c,v 1.3 2003/06/02 20:18:38 millert Exp $
* Span the string s2 (skip characters that are in s2).
*/
size_t
-strspn(s1, s2)
- const char *s1;
- register const char *s2;
+strspn(const char *s1, const char *s2)
{
- register const char *p = s1, *spanp;
- register char c, sc;
+ const char *p = s1, *spanp;
+ char c, sc;
/*
* Skip any characters in s2, excluding the terminating \0.