1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Use the simpler strcasecmp() instead of strcaselcmp()

This commit is contained in:
Jonas Fonseca 2006-01-01 23:05:34 +01:00 committed by Jonas Fonseca
parent 479039fb9e
commit c656a96a73

View File

@ -241,12 +241,12 @@ render_encoded_document(struct cache_entry *cached, struct document *document)
if (document->options.plain) { if (document->options.plain) {
#ifdef CONFIG_DOM #ifdef CONFIG_DOM
if (cached->content_type if (cached->content_type
&& (!strlcasecmp("text/html", 9, cached->content_type, -1) && (!strcasecmp("text/html", cached->content_type)
|| !strlcasecmp("application/xhtml+xml", 21, cached->content_type, -1) || !strcasecmp("application/xhtml+xml", cached->content_type)
|| !strlcasecmp("application/rss+xml", 19, cached->content_type, -1) || !strcasecmp("application/rss+xml", cached->content_type)
|| !strlcasecmp("application/xbel+xml", 20, cached->content_type, -1) || !strcasecmp("application/xbel+xml", cached->content_type)
|| !strlcasecmp("application/x-xbel", 18, cached->content_type, -1) || !strcasecmp("application/x-xbel", cached->content_type)
|| !strlcasecmp("application/xbel", 16, cached->content_type, -1))) || !strcasecmp("application/xbel", cached->content_type)))
render_dom_document(cached, document, &buffer); render_dom_document(cached, document, &buffer);
else else
#endif #endif