From 0aeedf43a0ac1d38b99af0508c635681dd6082bf Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 15 Jan 2003 16:24:25 +0000 Subject: * file.c (loadGopherDir): convertLine RAW_MODE * ftp.c (loadFTPDir): ditto * fix indent From: Fumitoshi UKAI --- news.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'news.c') diff --git a/news.c b/news.c index e95a0ba..840bbd1 100644 --- a/news.c +++ b/news.c @@ -1,4 +1,4 @@ -/* $Id: news.c,v 1.13 2003/01/15 16:14:41 ukai Exp $ */ +/* $Id: news.c,v 1.14 2003/01/15 16:24:25 ukai Exp $ */ #include "fm.h" #include "myctype.h" #include @@ -343,16 +343,14 @@ loadNewsgroup(ParsedURL *pu, char *code) if (SETJMP(AbortLoading) != 0) { news_close(¤t_news); - Strcat_charp(page, - "\n

Transfer Interrupted!\n"); + Strcat_charp(page, "\n

Transfer Interrupted!\n"); goto news_end; } trap = signal(SIGINT, KeyAbort); if (fmInitialized) term_cbreak(); - tmp = - news_command(¤t_news, "GROUP", group, &status); + tmp = news_command(¤t_news, "GROUP", group, &status); if (status != 211) goto news_list; if (sscanf(tmp->ptr, "%d %d %d %d", &status, &i, &first, &last) != 4) @@ -378,9 +376,7 @@ loadNewsgroup(ParsedURL *pu, char *code) } page = Sprintf("\n\n\n\ Newsgroup: %s %d-%d\n\ -\n\n

Newsgroup: %s %d-%d

\n
\n", - parsedURL2Str(pu)->ptr, qgroup, start, end, qgroup, start, - end); +\n\n

Newsgroup: %s %d-%d

\n
\n", parsedURL2Str(pu)->ptr, qgroup, start, end, qgroup, start, end); if (start > first) { i = start - MaxNewsMessage; if (i < first) @@ -427,7 +423,8 @@ loadNewsgroup(ParsedURL *pu, char *code) init_stream(&f, SCM_NEWS, current_news.rf); buf = newBuffer(INIT_BUFFER_WIDTH); for (i = start; i <= end && i <= last; i++) { - news_command(¤t_news, "HEAD", Sprintf("%d", i)->ptr, &status); + news_command(¤t_news, "HEAD", Sprintf("%d", i)->ptr, + &status); if (status != 221) continue; readHeader(&f, buf, FALSE, NULL); -- cgit v1.2.3