X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Futil.c;h=cce859491c2ca8e4e9775c3815eecdb7097c2ade;hb=230399f9632c37b66c1c117a17e8327eae6b3235;hp=c14c72b7f4e237d8fc3e321d0bc19db6151b6dac;hpb=3e9a92ab72e04aecb0fc4098098a1b57c5101d84;p=apps%2Fmadmutt.git diff --git a/imap/util.c b/imap/util.c index c14c72b..cce8594 100644 --- a/imap/util.c +++ b/imap/util.c @@ -13,17 +13,14 @@ #include "config.h" -#include -#include -#include +#include #include "mutt.h" #include "mx.h" /* for M_IMAP */ #include "imap_private.h" #include -#include -#include +#include #include #include @@ -80,7 +77,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 +84,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 +195,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 +209,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 +469,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 */ }