]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/tool/tool.c
Add a few casts, fix compiler warnings on NetBSD 5
[ngircd-alex.git] / src / tool / tool.c
index eb6c131e428462e81d3aad67075c721b429edd00..1bb3ebe698b0a6f106e09f5d1b85fea51e9f654b 100644 (file)
@@ -84,7 +84,7 @@ ngt_UpperStr(char *String)
 
        ptr = String;
        while(*ptr) {
-               *ptr = toupper(*ptr);
+               *ptr = toupper((int)*ptr);
                ptr++;
        }
        return String;
@@ -103,7 +103,7 @@ ngt_LowerStr(char *String)
 
        ptr = String;
        while(*ptr) {
-               *ptr = tolower(*ptr);
+               *ptr = tolower((int)*ptr);
                ptr++;
        }
        return String;