aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-20 08:15:22 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-20 08:15:22 +0000
commitb30a4fc9ee917f4547e3038fa64e6b5b189104b9 (patch)
treec800af3b9dab43ee9cd5c4851147733d4d9b1409
parentremove funcname.c funcname1.h funcname2.h; autogenerated files (diff)
downloadw3m-b30a4fc9ee917f4547e3038fa64e6b5b189104b9.tar.gz
w3m-b30a4fc9ee917f4547e3038fa64e6b5b189104b9.zip
remove gcc warnings
Diffstat (limited to '')
-rw-r--r--ChangeLog6
-rw-r--r--istream.c4
-rw-r--r--w3mhelperpanel.c2
3 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 12b817e..dddb20a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2001-11-20 Fumitoshi UKAI <ukai@debian.or.jp>
+ * w3mhelperpanel.c (extractMailcapEntry): remove unused variables
+ * istream.c (StrISgets): add parentheses around assignment used
+ as truth value
+
* XMakefile (clean): remove funcname.c funcname1.h funcname2.h
these are autogenerated files.
* funcname.c funcname1.h funcname2.h: removed from CVS
@@ -15,7 +19,7 @@
* ftp.c (ftp_escape_str ftp_restore_str): remove not used functions
* indep.c (getescapechar): remove unused variable
- * proto.h: add missin prototypes
+ * proto.h: add missing prototypes
2001-11-20 Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
diff --git a/istream.c b/istream.c
index 601a645..aed9e9c 100644
--- a/istream.c
+++ b/istream.c
@@ -1,4 +1,4 @@
-/* $Id: istream.c,v 1.4 2001/11/16 22:02:00 ukai Exp $ */
+/* $Id: istream.c,v 1.5 2001/11/20 08:15:22 ukai Exp $ */
#include "fm.h"
#include "istream.h"
#include <signal.h>
@@ -229,7 +229,7 @@ StrISgets(InputStream stream)
do_update(base);
}
else {
- if (p = memchr(&sb->buf[sb->cur], '\n', sb->next - sb->cur)) {
+ if ((p = memchr(&sb->buf[sb->cur], '\n', sb->next - sb->cur))) {
len = p - &sb->buf[sb->cur] + 1;
if (s == NULL)
s = Strnew_size(len);
diff --git a/w3mhelperpanel.c b/w3mhelperpanel.c
index 7862e47..4a8f5a6 100644
--- a/w3mhelperpanel.c
+++ b/w3mhelperpanel.c
@@ -33,7 +33,7 @@ char *local_cookie;
void
extractMailcapEntry(char *mcap_entry, char **type, char **cmd)
{
- int j, k;
+ int j;
while (*mcap_entry && IS_SPACE(*mcap_entry))
mcap_entry++;