summaryrefslogtreecommitdiff
path: root/chat/icb/patches/patch-as
blob: c9d7b2fbc5a04f7e3e8dc7af7b8e0eb23694b7ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$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,