From: Ralph Corderoy Date: Sat, 22 Oct 2016 18:56:52 +0000 (+0100) Subject: Use ToLower() instead of loop. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/ca1186d36c785b135f20b8114d2d22ff2c08b695?ds=sidebyside;hp=831d609eb70021081f4ff6361e11e01b29acfbb1 Use ToLower() instead of loop. --- diff --git a/uip/mhparse.c b/uip/mhparse.c index beaa294a..7e01b050 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -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))