aboutsummaryrefslogtreecommitdiffstats
path: root/news.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-15 16:24:25 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-15 16:24:25 +0000
commit0aeedf43a0ac1d38b99af0508c635681dd6082bf (patch)
treef52a72ffdde9a3e0c50ffb4792c54cd3560ba67b /news.c
parent[w3m-dev 03642] Re: cleanup (don't close connection of news server) (diff)
downloadw3m-0aeedf43a0ac1d38b99af0508c635681dd6082bf.tar.gz
w3m-0aeedf43a0ac1d38b99af0508c635681dd6082bf.zip
* file.c (loadGopherDir): convertLine RAW_MODE
* ftp.c (loadFTPDir): ditto * fix indent From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--news.c15
1 files changed, 6 insertions, 9 deletions
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 <stdio.h>
@@ -343,16 +343,14 @@ loadNewsgroup(ParsedURL *pu, char *code)
if (SETJMP(AbortLoading) != 0) {
news_close(&current_news);
- Strcat_charp(page,
- "</table>\n<p>Transfer Interrupted!\n");
+ Strcat_charp(page, "</table>\n<p>Transfer Interrupted!\n");
goto news_end;
}
trap = signal(SIGINT, KeyAbort);
if (fmInitialized)
term_cbreak();
- tmp =
- news_command(&current_news, "GROUP", group, &status);
+ tmp = news_command(&current_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("<html>\n<head>\n<base href=\"%s\">\n\
<title>Newsgroup: %s %d-%d</title>\n\
-</head>\n<body>\n<h1>Newsgroup: %s %d-%d</h1>\n<hr>\n",
- parsedURL2Str(pu)->ptr, qgroup, start, end, qgroup, start,
- end);
+</head>\n<body>\n<h1>Newsgroup: %s %d-%d</h1>\n<hr>\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(&current_news, "HEAD", Sprintf("%d", i)->ptr, &status);
+ news_command(&current_news, "HEAD", Sprintf("%d", i)->ptr,
+ &status);
if (status != 221)
continue;
readHeader(&f, buf, FALSE, NULL);