aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--news.c5
-rw-r--r--url.c4
3 files changed, 12 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index c2a54e2..5a1a2b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-07 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * 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'
+
2003-01-07 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03610] Re: news:<newsgroup>
@@ -6178,4 +6184,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.656 2003/01/06 15:36:56 ukai Exp $
+$Id: ChangeLog,v 1.657 2003/01/06 15:49:28 ukai Exp $
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';
diff --git a/url.c b/url.c
index e0a6794..d039fe5 100644
--- a/url.c
+++ b/url.c
@@ -1,4 +1,4 @@
-/* $Id: url.c,v 1.63 2003/01/06 15:37:00 ukai Exp $ */
+/* $Id: url.c,v 1.64 2003/01/06 15:49:29 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include <sys/socket.h>
@@ -989,7 +989,7 @@ parseURL2(char *url, ParsedURL *pu, ParsedURL *current)
current->scheme == SCM_NNTP_GROUP)) {
if (pu->host == NULL)
pu->host = current->host;
- if (pu->port == NULL)
+ if (pu->port == 0)
pu->port = current->port;
}
return;