mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-07 11:20:04 -04:00
28 lines
638 B
Plaintext
28 lines
638 B
Plaintext
$NetBSD: patch-as,v 1.2 2008/12/17 02:19:59 christos Exp $
|
|
|
|
--- icb/strccmp.c.orig 1995-02-24 16:20:30.000000000 -0500
|
|
+++ icb/strccmp.c 2008-12-16 20:22:58.000000000 -0500
|
|
@@ -61,8 +61,8 @@
|
|
'\370', '\371', '\372', '\373', '\374', '\375', '\376', '\377',
|
|
};
|
|
|
|
-strcasecmp(s1, s2)
|
|
- char *s1, *s2;
|
|
+int
|
|
+strcasecmp(const char *s1, const char *s2)
|
|
{
|
|
register char *cm = charmap,
|
|
*us1 = (char *)s1,
|
|
@@ -74,9 +74,8 @@
|
|
return(cm[*us1] - cm[*--us2]);
|
|
}
|
|
|
|
-strncasecmp(s1, s2, n)
|
|
- char *s1, *s2;
|
|
- register int n;
|
|
+int
|
|
+strncasecmp(const char *s1, const char *s2, size_t n)
|
|
{
|
|
register char *cm = charmap,
|
|
*us1 = (char *)s1,
|