From ca1186d36c785b135f20b8114d2d22ff2c08b695 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sat, 22 Oct 2016 19:56:52 +0100 Subject: [PATCH] Use ToLower() instead of loop. --- uip/mhparse.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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)) -- 2.56.0