From 05ebc6b11cf74e0e9e901f2e1c26d0d682c57842 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Wed, 11 Jun 2003 21:08:16 +0000 Subject: ansification; pval ok --- src/lib/libc/string/strstr.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/lib/libc/string/strstr.c') diff --git a/src/lib/libc/string/strstr.c b/src/lib/libc/string/strstr.c index 2e71af478c..e6a94c5ce6 100644 --- a/src/lib/libc/string/strstr.c +++ b/src/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 @@ -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); -- cgit v1.2.3-55-g6feb