From c656a96a7323f5a600d2da3e259e108ce844f755 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 1 Jan 2006 23:05:34 +0100 Subject: [PATCH] Use the simpler strcasecmp() instead of strcaselcmp() --- src/document/renderer.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/document/renderer.c b/src/document/renderer.c index b68de171..7edbc957 100644 --- a/src/document/renderer.c +++ b/src/document/renderer.c @@ -241,12 +241,12 @@ render_encoded_document(struct cache_entry *cached, struct document *document) if (document->options.plain) { #ifdef CONFIG_DOM if (cached->content_type - && (!strlcasecmp("text/html", 9, cached->content_type, -1) - || !strlcasecmp("application/xhtml+xml", 21, cached->content_type, -1) - || !strlcasecmp("application/rss+xml", 19, cached->content_type, -1) - || !strlcasecmp("application/xbel+xml", 20, cached->content_type, -1) - || !strlcasecmp("application/x-xbel", 18, cached->content_type, -1) - || !strlcasecmp("application/xbel", 16, cached->content_type, -1))) + && (!strcasecmp("text/html", cached->content_type) + || !strcasecmp("application/xhtml+xml", cached->content_type) + || !strcasecmp("application/rss+xml", cached->content_type) + || !strcasecmp("application/xbel+xml", cached->content_type) + || !strcasecmp("application/x-xbel", cached->content_type) + || !strcasecmp("application/xbel", cached->content_type))) render_dom_document(cached, document, &buffer); else #endif