]> diplodocus.org Git - nmh/blobdiff - sbr/mf.c
Assume POSIX ctype.h; don't vet toupper()'s parameter.
[nmh] / sbr / mf.c
index 9e5cad8ce8dcaa23cae22e00c0feede2dc407e59..63b13ba411f8e9bc1d033984f7730c0c755c9d09 100644 (file)
--- a/sbr/mf.c
+++ b/sbr/mf.c
@@ -39,10 +39,8 @@ lequal (const char *a, const char *b)
     for (; *a; a++, b++) {
        if (*b == 0)
            return FALSE;
-        c1 = islower ((unsigned char) *a) ?
-                                    toupper ((unsigned char) *a) : *a;
-        c2 = islower ((unsigned char) *b) ?
-                                    toupper ((unsigned char) *b) : *b;
+        c1 = toupper((unsigned char)*a);
+        c2 = toupper((unsigned char)*b);
         if (c1 != c2)
             return FALSE;
     }