diff --git a/lib/roken/strcasecmp.c b/lib/roken/strcasecmp.c index 142a2289e..7c1089f84 100644 --- a/lib/roken/strcasecmp.c +++ b/lib/roken/strcasecmp.c @@ -31,17 +31,16 @@ * SUCH DAMAGE. */ -#ifndef __STDC__ -#define const +#ifdef HAVE_CONFIG_H +#include +RCSID("$Id$"); #endif -#include -#include -#ifdef NO_STRING_H -#include -#else #include +#ifdef HAVE_SYS_TYPES_H +#include #endif +#include #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strcasecmp.c 8.1 (Berkeley) 6/4/93"; @@ -88,10 +87,9 @@ static const u_char charmap[] = { }; int -strcasecmp(s1, s2) - const char *s1, *s2; +strcasecmp(const char *s1, const char *s2) { - register const u_char *cm = charmap, + const u_char *cm = charmap, *us1 = (const u_char *)s1, *us2 = (const u_char *)s2; @@ -102,12 +100,10 @@ strcasecmp(s1, s2) } int -strncasecmp(s1, s2, n) - const char *s1, *s2; - register size_t n; +strncasecmp(const char *s1, const char *s2, size_t n) { if (n != 0) { - register const u_char *cm = charmap, + const u_char *cm = charmap, *us1 = (const u_char *)s1, *us2 = (const u_char *)s2;