]> diplodocus.org Git - nmh/commitdiff
Use ToLower() instead of loop.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 22 Oct 2016 18:56:52 +0000 (19:56 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 22 Oct 2016 18:56:52 +0000 (19:56 +0100)
uip/mhparse.c

index beaa294a23cb36ecebec4cdd21f11865164442bb..7e01b050807fe93b0538b73ca42c23c9cb367e3e 100644 (file)
@@ -657,10 +657,7 @@ get_ctinfo (char *cp, CT ct, int magic)
                TYPE_FIELD, ct->c_file);
        return NOTOK;
     }
-
-    /* down case the content type string */
-    for (dp = ci->ci_type; *dp; dp++)
-        *dp = tolower ((unsigned char) *dp);
+    ToLower(ci->ci_type);
 
     while (isspace ((unsigned char) *cp))
        cp++;
@@ -695,10 +692,7 @@ get_ctinfo (char *cp, CT ct, int magic)
                TYPE_FIELD, ct->c_file, ci->ci_type);
        return NOTOK;
     }
-
-    /* down case the content subtype string */
-    for (dp = ci->ci_subtype; *dp; dp++)
-        *dp = tolower ((unsigned char) *dp);
+    ToLower(ci->ci_subtype);
 
 magic_skip:
     while (isspace ((unsigned char) *cp))