summaryrefslogtreecommitdiff
path: root/lib/libc/string/strcspn.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-11 21:08:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-11 21:08:17 +0000
commit2ff2a6df1f367e97160f7c805c68b9a829b03a45 (patch)
tree280678041612d983ee3097b18e8d18d54b7b9f67 /lib/libc/string/strcspn.c
parent21ac64d7aa40363658ebcaef7506daa87f941f2c (diff)
ansification; pval ok
Diffstat (limited to 'lib/libc/string/strcspn.c')
-rw-r--r--lib/libc/string/strcspn.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libc/string/strcspn.c b/lib/libc/string/strcspn.c
index d6aa0994237..f96f9038097 100644
--- a/lib/libc/string/strcspn.c
+++ b/lib/libc/string/strcspn.c
@@ -31,7 +31,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: strcspn.c,v 1.3 2003/06/02 20:18:38 millert Exp $";
+static char *rcsid = "$OpenBSD: strcspn.c,v 1.4 2003/06/11 21:08:16 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <string.h>
@@ -40,12 +40,10 @@ static char *rcsid = "$OpenBSD: strcspn.c,v 1.3 2003/06/02 20:18:38 millert Exp
* Span the complement of string s2.
*/
size_t
-strcspn(s1, s2)
- const char *s1;
- register const char *s2;
+strcspn(const char *s1, const char *s2)
{
- register const char *p, *spanp;
- register char c, sc;
+ const char *p, *spanp;
+ char c, sc;
/*
* Stop as soon as we find any character from s2. Note that there