X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=nntp%2Fnewsrc.c;h=4f2f2491f083ff4f3f3b5113a137a08302f52911;hb=5d88c27be2e8f16849640ee321d8d543170a4461;hp=4e897f38372f31f8316f853c7b86bde2dd48843c;hpb=51239e43fd4a3c2440b4574379e8525d75646b3e;p=apps%2Fmadmutt.git diff --git a/nntp/newsrc.c b/nntp/newsrc.c index 4e897f3..4f2f249 100644 --- a/nntp/newsrc.c +++ b/nntp/newsrc.c @@ -274,7 +274,7 @@ int nntp_parse_url (const char *server, ACCOUNT * act, if (url.scheme == U_NNTP || url.scheme == U_NNTPS) { if (url.scheme == U_NNTPS) { - act->flags |= M_ACCT_SSL; + act->has_ssl = 1; act->port = NNTP_SSL_PORT; } @@ -378,13 +378,13 @@ NNTP_SERVER *mutt_select_newsserver (char *server) serv = p_new(NNTP_SERVER, 1); serv->conn = conn; serv->newsrc = m_strdup(file); - serv->newsgroups = hash_create(1009, false); + serv->newsgroups = hash_new(1009, false); slurp_newsrc (serv); /* load .newsrc */ nntp_parse_cacheindex (serv); /* load .index */ if (option (OPTNEWSCACHE) && serv->cache && nntp_get_cache_all (serv) >= 0) nntp_check_newgroups (serv, 1); else if (nntp_get_active (serv) < 0) { - hash_destroy (&serv->newsgroups, nntp_delete_data); + hash_delete (&serv->newsgroups, nntp_delete_data); for (list = serv->list; list; list = list->next) list->data = NULL; string_list_wipe(&serv->list);