w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit d35aee8c96b13ff6888a21bea90781dd8bdeeec7
parent 39f6120e332478de507658f66499af004fcbd032
Author: ukai <ukai>
Date:   Fri, 27 Dec 2002 16:30:53 +0000

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:
MChangeLog | 10++++++++++
Mfile.c | 1-
Mnews.c | 12+++++++-----
Murl.c | 5-----
4 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,5 +1,15 @@ 2002-12-28 Fumitoshi UKAI <ukai@debian.or.jp> + * 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' + +2002-12-28 Fumitoshi UKAI <ukai@debian.or.jp> + * rc: nntpserver, nntpmode, max_news 2002-12-28 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> diff --git a/file.c b/file.c @@ -6372,7 +6372,6 @@ loadHTMLstream(URLFile *f, Buffer *newBuf, FILE * src, int internal) clen_t linelen = 0; clen_t trbyte = 0; Str lineBuf2 = Strnew(); - char *p; char code; struct html_feed_environ htmlenv1; struct readbuffer obuf; diff --git a/news.c b/news.c @@ -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); diff --git a/url.c b/url.c @@ -1449,11 +1449,6 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current, #ifdef USE_SSL SSL *sslh = NULL; #endif /* USE_SSL */ -#ifdef USE_NNTP - FILE *fw; - char *r; - InputStream stream; -#endif /* USE_NNTP */ int extlen = strlen(CGI_EXTENSION); if (hr == NULL)