more nonnull attributes.
[apps/madmutt.git] / lib-lib / url.c
index afc444b..ce0f970 100644 (file)
  * A simple URL parser.
  */
 
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <ctype.h>
-
-#include <lib-lib/mem.h>
-#include <lib-lib/ascii.h>
-#include <lib-lib/mapping.h>
-#include <lib-lib/url.h>
-
-#include <lib-mime/mime.h>
-
-#include "mutt.h"
+#include "lib-lib.h"
 
 static struct mapping_t UrlMap[] = {
     {"file",   U_FILE},
@@ -109,7 +96,7 @@ static char *ciss_parse_userhost(ciss_url_t *ciss, char *src)
     ciss->host = NULL;
     ciss->port = 0;
 
-    if (strncmp(src, "//", 2))
+    if (m_strncmp(src, "//", 2))
         return src;
 
     src += 2;