summaryrefslogtreecommitdiff
path: root/lib/libc/string/strstr.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/strstr.c
parent21ac64d7aa40363658ebcaef7506daa87f941f2c (diff)
ansification; pval ok
Diffstat (limited to 'lib/libc/string/strstr.c')
-rw-r--r--lib/libc/string/strstr.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/string/strstr.c b/lib/libc/string/strstr.c
index 2e71af478c3..e6a94c5ce65 100644
--- a/lib/libc/string/strstr.c
+++ b/lib/libc/string/strstr.c
@@ -31,7 +31,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: strstr.c,v 1.3 2003/06/02 20:18:38 millert Exp $";
+static char *rcsid = "$OpenBSD: strstr.c,v 1.4 2003/06/11 21:08:16 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <string.h>
@@ -40,11 +40,10 @@ static char *rcsid = "$OpenBSD: strstr.c,v 1.3 2003/06/02 20:18:38 millert Exp $
* Find the first occurrence of find in s.
*/
char *
-strstr(s, find)
- register const char *s, *find;
+strstr(const char *s, const char *find)
{
- register char c, sc;
- register size_t len;
+ char c, sc;
+ size_t len;
if ((c = *find++) != 0) {
len = strlen(find);