diff options
Diffstat (limited to 'src/lib/libc/string/strcmp.c')
-rw-r--r-- | src/lib/libc/string/strcmp.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/lib/libc/string/strcmp.c b/src/lib/libc/string/strcmp.c index ae19e2e26e..9bda0a8d75 100644 --- a/src/lib/libc/string/strcmp.c +++ b/src/lib/libc/string/strcmp.c | |||
@@ -13,11 +13,7 @@ | |||
13 | * 2. Redistributions in binary form must reproduce the above copyright | 13 | * 2. Redistributions in binary form must reproduce the above copyright |
14 | * notice, this list of conditions and the following disclaimer in the | 14 | * notice, this list of conditions and the following disclaimer in the |
15 | * documentation and/or other materials provided with the distribution. | 15 | * documentation and/or other materials provided with the distribution. |
16 | * 3. All advertising materials mentioning features or use of this software | 16 | * 3. Neither the name of the University nor the names of its contributors |
17 | * must display the following acknowledgement: | ||
18 | * This product includes software developed by the University of | ||
19 | * California, Berkeley and its contributors. | ||
20 | * 4. Neither the name of the University nor the names of its contributors | ||
21 | * may be used to endorse or promote products derived from this software | 17 | * may be used to endorse or promote products derived from this software |
22 | * without specific prior written permission. | 18 | * without specific prior written permission. |
23 | * | 19 | * |
@@ -35,18 +31,20 @@ | |||
35 | */ | 31 | */ |
36 | 32 | ||
37 | #if defined(LIBC_SCCS) && !defined(lint) | 33 | #if defined(LIBC_SCCS) && !defined(lint) |
38 | /*static char *sccsid = "from: @(#)strcmp.c 5.5 (Berkeley) 1/26/91";*/ | 34 | static char *rcsid = "$OpenBSD: strcmp.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $"; |
39 | static char *rcsid = "$Id: strcmp.c,v 1.1.1.1 1995/10/18 08:42:22 deraadt Exp $"; | ||
40 | #endif /* LIBC_SCCS and not lint */ | 35 | #endif /* LIBC_SCCS and not lint */ |
41 | 36 | ||
37 | #ifndef _KERNEL | ||
42 | #include <string.h> | 38 | #include <string.h> |
39 | #else | ||
40 | #include <lib/libkern/libkern.h> | ||
41 | #endif | ||
43 | 42 | ||
44 | /* | 43 | /* |
45 | * Compare strings. | 44 | * Compare strings. |
46 | */ | 45 | */ |
47 | int | 46 | int |
48 | strcmp(s1, s2) | 47 | strcmp(const char *s1, const char *s2) |
49 | register const char *s1, *s2; | ||
50 | { | 48 | { |
51 | while (*s1 == *s2++) | 49 | while (*s1 == *s2++) |
52 | if (*s1++ == 0) | 50 | if (*s1++ == 0) |