simplify include
[apps/madmutt.git] / buffy.c
diff --git a/buffy.c b/buffy.c
index 27396d9..6c9ef3e 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -29,13 +29,6 @@ static time_t ImapBuffyTime = 0;  /* last time we started checking for mail */
 static short  BuffyCount = 0;     /* how many boxes with new mail */
 static short  BuffyNotify = 0;    /* # of unnotified new boxes */
 
-static inline void buffy_delete(BUFFY** p)
-{
-    p_delete(&(*p)->path);
-    p_delete(p);
-}
-DO_ARRAY_FUNCS(BUFFY, buffy, buffy_delete);
-
 /* Return the index number of path in Incoming list */
 int buffy_lookup(const char* path)
 {
@@ -64,7 +57,7 @@ int buffy_parse_mailboxes(BUFFER *path, BUFFER *s, unsigned long data,
         mutt_extract_token(path, s, 0);
         m_strcpy(buf, sizeof(buf), path->data);
 
-        if (data == M_UNMAILBOXES && !strcmp(buf, "*")) {
+        if (data == M_UNMAILBOXES && !m_strcmp(buf, "*")) {
             buffy_array_wipe(&Incoming);
             return 0;
         }