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++;
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))
continue;
*next = NULL;
free_content (p);
- free ((char *) part);
+ free(part);
}
}
for (i = 0; i < decoded_len; ++i) {
putc (*decoded_p++, ce->ce_fp);
}
- free ((char *) decoded);
+ free(decoded);
if (ferror (ce->ce_fp)) {
content_error (ce->ce_file, ct, "error writing to");
goto clean_up;