Hi,
the two appended patches shut up this message
warning: subscript has type `char'
on NetBSD 3.
ciao
Klaus
$NetBSD$
--- util.c.orig 2007-02-03 00:00:25.000000000 +0100
+++ util.c
@@ -367,11 +367,11 @@ int Util_countWords(char *s, const char
*/
int Util_startsWith(const char *a, const char *b) {
- if((!a || !b) || toupper(*a)!=toupper(*b)) return FALSE;
+ if((!a || !b) || toupper((int)*a)!=toupper((int)*b)) return FALSE;
while(*a && *b) {
- if(toupper(*a++) != toupper(*b++)) return FALSE;
+ if(toupper((int)*a++) != toupper((int)*b++)) return FALSE;
}
$NetBSD$
--- p.y.orig 2007-01-12 22:17:12.000000000 +0100
+++ p.y
@@ -3320,7 +3320,7 @@ static int cleanup_hash_string(char *has
if (isxdigit((int) hashstring[i])) {
- hashstring[j]=tolower(hashstring[i]);
+ hashstring[j]=tolower((int)hashstring[i]);
j++;
}
_______________________________________________
monit-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monit-dev