diff options
Diffstat (limited to 'src/lib/libc/string/strcmp.c')
-rw-r--r-- | src/lib/libc/string/strcmp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libc/string/strcmp.c b/src/lib/libc/string/strcmp.c index 082561f7ff..9bda0a8d75 100644 --- a/src/lib/libc/string/strcmp.c +++ b/src/lib/libc/string/strcmp.c | |||
@@ -31,7 +31,7 @@ | |||
31 | */ | 31 | */ |
32 | 32 | ||
33 | #if defined(LIBC_SCCS) && !defined(lint) | 33 | #if defined(LIBC_SCCS) && !defined(lint) |
34 | static char *rcsid = "$OpenBSD: strcmp.c,v 1.4 2003/06/02 20:18:38 millert Exp $"; | 34 | static char *rcsid = "$OpenBSD: strcmp.c,v 1.5 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 | #ifndef _KERNEL | 37 | #ifndef _KERNEL |
@@ -44,8 +44,7 @@ static char *rcsid = "$OpenBSD: strcmp.c,v 1.4 2003/06/02 20:18:38 millert Exp $ | |||
44 | * Compare strings. | 44 | * Compare strings. |
45 | */ | 45 | */ |
46 | int | 46 | int |
47 | strcmp(s1, s2) | 47 | strcmp(const char *s1, const char *s2) |
48 | register const char *s1, *s2; | ||
49 | { | 48 | { |
50 | while (*s1 == *s2++) | 49 | while (*s1 == *s2++) |
51 | if (*s1++ == 0) | 50 | if (*s1++ == 0) |