X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Futil.c;h=d7837e190a6033fc7f4cd082ce4485be2fbb1de2;hb=1ee89902de184a640c171ae3285bff6882a791bd;hp=8c294d2b4d7a046aa5fd00c14117bcef05c5e005;hpb=08fa240d29322ece4c7bceebfae6c6d3fb856f0e;p=apps%2Fmadmutt.git diff --git a/imap/util.c b/imap/util.c index 8c294d2..d7837e1 100644 --- a/imap/util.c +++ b/imap/util.c @@ -11,30 +11,14 @@ /* general IMAP utility functions */ -#include "config.h" - -#include -#include +#include +#include +#include #include "mutt.h" #include "mx.h" /* for M_IMAP */ -#include "url.h" #include "imap_private.h" -#include - -#include -#include "lib/debug.h" - -#include -#include - -#include -#include -#include -#include -#include - -#include +#include /* -- public functions -- */ @@ -80,7 +64,6 @@ int imap_parse_path (const char *path, IMAP_MBOX * mx) ImapPort = ntohs (service->s_port); else ImapPort = IMAP_PORT; - debug_print (3, ("Using default IMAP port %d\n", ImapPort)); } if (!ImapsPort) { service = getservbyname ("imaps", "tcp"); @@ -88,7 +71,6 @@ int imap_parse_path (const char *path, IMAP_MBOX * mx) ImapsPort = ntohs (service->s_port); else ImapsPort = IMAP_SSL_PORT; - debug_print (3, ("Using default IMAPS port %d\n", ImapsPort)); } /* Defaults */ @@ -200,7 +182,7 @@ void imap_free_idata (IMAP_DATA ** idata) return; p_delete(&(*idata)->capstr); - mutt_free_list (&(*idata)->flags); + string_list_wipe(&(*idata)->flags); p_delete(&((*idata)->cmd.buf)); p_delete(idata); } @@ -214,7 +196,7 @@ void imap_free_idata (IMAP_DATA ** idata) * Moreover, IMAP servers may dislike the path ending with the delimiter. */ char *imap_fix_path (IMAP_DATA * idata, char *mailbox, char *path, - size_t plen) + ssize_t plen) { int x = 0; @@ -474,7 +456,7 @@ int imap_wordcasecmp (const char *a, const char *b) * */ -static RETSIGTYPE alrm_handler (int sig) +static RETSIGTYPE alrm_handler (int sig __attribute__((unused))) { /* empty */ }