summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/strstr.c')
-rw-r--r--src/lib/libc/string/strstr.c9
1 files changed, 4 insertions, 5 deletions
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 @@
31 */ 31 */
32 32
33#if defined(LIBC_SCCS) && !defined(lint) 33#if defined(LIBC_SCCS) && !defined(lint)
34static char *rcsid = "$OpenBSD: strstr.c,v 1.3 2003/06/02 20:18:38 millert Exp $"; 34static char *rcsid = "$OpenBSD: strstr.c,v 1.4 2003/06/11 21:08:16 deraadt Exp $";
35#endif /* LIBC_SCCS and not lint */ 35#endif /* LIBC_SCCS and not lint */
36 36
37#include <string.h> 37#include <string.h>
@@ -40,11 +40,10 @@ static char *rcsid = "$OpenBSD: strstr.c,v 1.3 2003/06/02 20:18:38 millert Exp $
40 * Find the first occurrence of find in s. 40 * Find the first occurrence of find in s.
41 */ 41 */
42char * 42char *
43strstr(s, find) 43strstr(const char *s, const char *find)
44 register const char *s, *find;
45{ 44{
46 register char c, sc; 45 char c, sc;
47 register size_t len; 46 size_t len;
48 47
49 if ((c = *find++) != 0) { 48 if ((c = *find++) != 0) {
50 len = strlen(find); 49 len = strlen(find);