aboutsummaryrefslogtreecommitdiffstats
path: root/news.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-06 15:49:28 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-06 15:49:28 +0000
commitb5462e19366cd6c4379a8b8e84b5046e76a12c6d (patch)
tree99d228ac35ca69f99f60384525931ce12b05b839 /news.c
parentfix indent (diff)
downloadw3m-b5462e19366cd6c4379a8b8e84b5046e76a12c6d.tar.gz
w3m-b5462e19366cd6c4379a8b8e84b5046e76a12c6d.zip
fix build warnings
* url.c (parseURL2): fix comparison between pointer and integer * news.c (readNewsgroup): variable `scheme',`group',`list' might be clobbered by `longjmp' or `vfork' From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--news.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/news.c b/news.c
index 08b7b25..96605d8 100644
--- a/news.c
+++ b/news.c
@@ -1,4 +1,4 @@
-/* $Id: news.c,v 1.7 2003/01/06 15:37:50 ukai Exp $ */
+/* $Id: news.c,v 1.8 2003/01/06 15:49:29 ukai Exp $ */
#include "fm.h"
#include "myctype.h"
#include <stdio.h>
@@ -311,7 +311,8 @@ readNewsgroup(ParsedURL *pu)
Str tmp;
URLFile f;
Buffer *buf;
- char *scheme, *group, *qgroup, *list, *p, *q, *s, *t, *n;
+ char *qgroup, *p, *q, *s, *t, *n;
+ char * volatile scheme, * volatile group, * volatile list;
int status, i, first, last;
volatile int flag = 0, start = 0, end = 0;
char code = '\0';