aboutsummaryrefslogtreecommitdiffstats
path: root/news.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-27 16:30:53 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-27 16:30:53 +0000
commit68d984ef99e423112afaf499951eb778b9533c0e (patch)
tree58c97a048d0adc64e3b7da8f61e1d91094f1427e /news.c
parentfix indent (diff)
downloadw3m-68d984ef99e423112afaf499951eb778b9533c0e.tar.gz
w3m-68d984ef99e423112afaf499951eb778b9533c0e.zip
gcc -Wall -Werror clean
* file.c (loadHTMLstream): unused variable `p' * news.c (news_command): unused variable `c' (news_open): unused variable `tmp' (readNewsgroup): volatile page, qgroup, flag, start, end uninitialized variable `page' * url.c (openURL): unused variable `fw', `r', `stream' From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'news.c')
-rw-r--r--news.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/news.c b/news.c
index 84c61d6..bd2b579 100644
--- a/news.c
+++ b/news.c
@@ -1,4 +1,4 @@
-/* $Id: news.c,v 1.2 2002/12/27 16:09:18 ukai Exp $ */
+/* $Id: news.c,v 1.3 2002/12/27 16:30:54 ukai Exp $ */
#include "fm.h"
#include "myctype.h"
#include <stdio.h>
@@ -36,7 +36,6 @@ static Str
news_command(News * news, char *command, int *status)
{
Str tmp;
- char c;
if (!news->host)
return NULL;
@@ -72,7 +71,6 @@ news_close(News * news)
static int
news_open(News * news)
{
- Str tmp;
int sock, status;
sock = openSocket(news->host, "nntp", news->port);
@@ -268,11 +266,14 @@ openNewsStream(ParsedURL *pu)
Str
readNewsgroup(ParsedURL *pu)
{
- Str page, tmp;
+ volatile Str page;
+ Str tmp;
URLFile f;
Buffer *buf;
- char *group, *qgroup, *p, *q, *s, *t, *n;
- int status, flag = 0, i, first, last, start = 0, end = 0;
+ char *group, *p, *q, *s, *t, *n;
+ char * volatile qgroup;
+ int status, i, first, last;
+ volatile int flag = 0, start = 0, end = 0;
#ifdef JP_CHARSET
char code = '\0';
#endif
@@ -282,6 +283,7 @@ readNewsgroup(ParsedURL *pu)
return NULL;
group = file_unquote(pu->file);
qgroup = html_quote(group);
+ page = Strnew();
if (fmInitialized) {
message(Sprintf("Reading newsgroup %s...", group)->ptr, 0, 0);