From b5462e19366cd6c4379a8b8e84b5046e76a12c6d Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 6 Jan 2003 15:49:28 +0000 Subject: 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 --- news.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'news.c') 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 @@ -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'; -- cgit v1.2.3