X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=complete.c;h=77cc11718a01d548caa50400771efbf424906658;hp=b84d0b1364befb9b92a19d85b4af84ec98bf4371;hb=9ad7a458e335c2738f54335f64902604287b547f;hpb=ee1d4d931ca3ebec494694b74a1868a7a2e631e3 diff --git a/complete.c b/complete.c index b84d0b1..77cc117 100644 --- a/complete.c +++ b/complete.c @@ -21,6 +21,7 @@ #endif #include "lib/str.h" +#include "lib/debug.h" #include #include @@ -47,7 +48,7 @@ int mutt_complete (char *s, size_t slen) char imap_path[LONG_STRING]; #endif - dprint (2, (debugfile, "mutt_complete: completing %s\n", s)); + debug_print (2, ("completing %s\n", s)); #ifdef USE_NNTP if (option (OPTNEWS)) { @@ -112,7 +113,7 @@ int mutt_complete (char *s, size_t slen) else strfcpy (imap_path, s, sizeof (imap_path)); - if (mx_is_imap (imap_path)) + if (mx_get_magic (imap_path) == M_IMAP) return imap_complete (s, slen, imap_path); #endif @@ -167,9 +168,7 @@ int mutt_complete (char *s, size_t slen) } if (dirp == NULL) { - dprint (1, - (debugfile, "mutt_complete(): %s: %s (errno %d).\n", exp_dirpart, - strerror (errno), errno)); + debug_print (1, ("%s: %s (errno %d).\n", exp_dirpart, strerror (errno), errno)); return (-1); }