Use m_functions(), you'll be fresh-faced.
[apps/madmutt.git] / charset.c
index 32317b1..89d5d74 100644 (file)
--- a/charset.c
+++ b/charset.c
@@ -27,7 +27,6 @@
 
 #include <lib-lib/lib-lib.h>
 
-#include <sys/types.h>
 #ifdef HAVE_LANGINFO_CODESET
 #  include <langinfo.h>
 #endif
@@ -66,7 +65,7 @@ void charset_initialize(void)
         m_strreplace(&Charset, "iso-8859-1");
     }
 
-    Charset_is_utf8    = !strcmp(Charset, "utf-8");
+    Charset_is_utf8    = !m_strcmp(Charset, "utf-8");
     CharsetReplacement = Charset_is_utf8 ? 0xfffd : '?';
 
 #ifdef HAVE_BIND_TEXTDOMAIN_CODESET
@@ -122,14 +121,14 @@ int charset_is_utf8(const char *s)
 {
     char buf[SHORT_STRING];
     charset_canonicalize(buf, sizeof(buf), s);
-    return !strcmp(buf, "utf-8");
+    return !m_strcmp(buf, "utf-8");
 }
 
 int charset_is_us_ascii(const char *s)
 {
     char buf[SHORT_STRING];
     charset_canonicalize(buf, sizeof(buf), s);
-    return !strcmp(buf, "us-ascii");
+    return !m_strcmp(buf, "us-ascii");
 }