X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=nntp%2Fnewsrc.c;h=29b427c2248c8e157a46738444081e3c9fcf4d19;hb=90c36546d834608e1ce96f4142ef9a1f6b405a7c;hp=1af28c285f57d01ce3c0c1e3e501191c2e9f9b7c;hpb=2a06362a155582cd59ae2ef6f0df71694a7eede3;p=apps%2Fmadmutt.git diff --git a/nntp/newsrc.c b/nntp/newsrc.c index 1af28c2..29b427c 100644 --- a/nntp/newsrc.c +++ b/nntp/newsrc.c @@ -13,39 +13,37 @@ #include #endif +#include +#include +#include +#include +#include +#include + #include #include #include #include +#include #include +#include + #include "mutt.h" -#include "mutt_curses.h" #include "sort.h" #include "mx.h" #include "nntp.h" -#include "rfc822.h" #include "rfc1524.h" -#include "rfc2047.h" - -#include "lib/debug.h" - -#include -#include -#include -#include -#include -#include void nntp_add_to_list (NNTP_SERVER * s, NNTP_DATA * d) { - LIST *l; + string_list_t *l; if (!s || !d) return; - l = p_new(LIST, 1); + l = p_new(string_list_t, 1); if (s->list) s->tail->next = l; else @@ -267,7 +265,7 @@ const char *nntp_format_str (char *dest, size_t destlen, char op, switch (op) { case 's': m_strcpy(fn, sizeof (fn), NewsServer); - str_tolower (fn); + m_strtolower(fn); snprintf (tmp, sizeof (tmp), "%%%ss", fmt); snprintf (dest, destlen, tmp, fn); break; @@ -333,7 +331,7 @@ NNTP_SERVER *mutt_select_newsserver (char *server) { char file[_POSIX_PATH_MAX]; char *buf, *p; - LIST *list; + string_list_t *list; ACCOUNT acct; NNTP_SERVER *serv; CONNECTION *conn; @@ -408,7 +406,7 @@ NNTP_SERVER *mutt_select_newsserver (char *server) hash_destroy (&serv->newsgroups, nntp_delete_data); for (list = serv->list; list; list = list->next) list->data = NULL; - mutt_free_list (&serv->list); + string_list_wipe(&serv->list); p_delete(&serv->newsrc); p_delete(&serv->cache); p_delete(&serv); @@ -747,7 +745,7 @@ int mutt_newsrc_update (NNTP_SERVER * news) { char *buf, *line; NNTP_DATA *data; - LIST *tmp; + string_list_t *tmp; int r = -1; size_t len, llen; @@ -823,7 +821,7 @@ static int nntp_update_cacheindex (NNTP_SERVER * serv, NNTP_DATA * data) void nntp_clear_cacheindex (NNTP_SERVER * news) { NNTP_DATA *data; - LIST *tmp; + string_list_t *tmp; if (option (OPTSAVEUNSUB) || !news) return; @@ -844,7 +842,7 @@ int nntp_save_cache_index (NNTP_SERVER * news) char file[_POSIX_PATH_MAX]; NNTP_DATA *d; FILE *f; - LIST *l; + string_list_t *l; if (!news || !news->newsgroups) return -1; @@ -1080,7 +1078,7 @@ NNTP_DATA *mutt_newsgroup_uncatchup (NNTP_SERVER * news, char *group) /* this routine gives the first newsgroup with new messages */ void nntp_buffy (char* dst, size_t dstlen) { - LIST *list; + string_list_t *list; int count = 0; /* forward to current group */