summaryrefslogtreecommitdiff
path: root/usr/src/boot/lib/libstand/strcasecmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/boot/lib/libstand/strcasecmp.c')
-rw-r--r--usr/src/boot/lib/libstand/strcasecmp.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/usr/src/boot/lib/libstand/strcasecmp.c b/usr/src/boot/lib/libstand/strcasecmp.c
index 7ef3f59d9d..8023f64705 100644
--- a/usr/src/boot/lib/libstand/strcasecmp.c
+++ b/usr/src/boot/lib/libstand/strcasecmp.c
@@ -28,23 +28,16 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
#include <sys/cdefs.h>
#include <string.h>
#include "stand.h"
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)strcasecmp.c 8.1 (Berkeley) 6/4/93";
-#endif /* LIBC_SCCS and not lint */
-
int
-strcasecmp(s1, s2)
- const char *s1, *s2;
+strcasecmp(const char *s1, const char *s2)
{
- const u_char
- *us1 = (const u_char *)s1,
- *us2 = (const u_char *)s2;
+ const uchar_t *us1 = (const uchar_t *)s1;
+ const uchar_t *us2 = (const uchar_t *)s2;
while (tolower(*us1) == tolower(*us2++))
if (*us1++ == '\0')
@@ -53,14 +46,11 @@ strcasecmp(s1, s2)
}
int
-strncasecmp(s1, s2, n)
- const char *s1, *s2;
- size_t n;
+strncasecmp(const char *s1, const char *s2, size_t n)
{
if (n != 0) {
- const u_char
- *us1 = (const u_char *)s1,
- *us2 = (const u_char *)s2;
+ const uchar_t *us1 = (const uchar_t *)s1;
+ const uchar_t *us2 = (const uchar_t *)s2;
do {
if (tolower(*us1) != tolower(*us2++))