X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=nntp%2Fnntp.c;h=3a1e626d51130df0987b7ec45b651b7503e4be9a;hb=c6b9d35ed9361e4defab9762a7480d5126405ae9;hp=24850c8b9663e13f85718cf0112d02e25864ef64;hpb=9274cbe8e6410ddb95ddc667faa678a29da85420;p=apps%2Fmadmutt.git diff --git a/nntp/nntp.c b/nntp/nntp.c index 24850c8..3a1e626 100644 --- a/nntp/nntp.c +++ b/nntp/nntp.c @@ -15,6 +15,7 @@ #include #include +#include #include #include "mutt.h" @@ -261,7 +262,7 @@ static int nntp_reconnect (NNTP_SERVER * serv) mutt_socket_close (serv->conn); - FOREVER { + for (;;) { if (nntp_connect_and_auth (serv) == 0) return 0; @@ -349,7 +350,7 @@ static int mutt_nntp_fetch (NNTP_DATA * nntp_data, const char *query, char *msg, line = 0; inbuf = p_new(char, sizeof(buf)); - FOREVER { + for (;;) { chunk = mutt_socket_readln_d (buf, sizeof (buf), nntp_data->nserv->conn, M_SOCK_LOG_HDR); if (chunk < 0) @@ -440,7 +441,7 @@ static void nntp_parse_xref (CONTEXT * ctx, char *group, char *xref, *colon = '\0'; colon++; nntp_get_status (ctx, h, b, atoi (colon)); - if (h && h->article_num == 0 && str_cmp (group, b) == 0) + if (h && h->article_num == 0 && m_strcmp(group, b) == 0) h->article_num = atoi (colon); } } @@ -512,7 +513,7 @@ static int parse_description (char *line, void *n) d++; debug_print (2, ("group: %s, desc: %s\n", line, d)); if ((data = (NNTP_DATA *) hash_find (news->newsgroups, line)) != NULL && - str_cmp (d, data->desc)) { + m_strcmp(d, data->desc)) { p_delete(&data->desc); data->desc = m_strdup(d); }