aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-02-20 15:39:18 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-02-20 15:39:18 +0000
commit4336b447de0ffda614a3fc463a80b360164fbeb1 (patch)
tree1052e9e093ddcc033095fb5905422f6c421d778a
parent[w3m-dev 03760] Re: README.cygwin (diff)
downloadw3m-4336b447de0ffda614a3fc463a80b360164fbeb1.tar.gz
w3m-4336b447de0ffda614a3fc463a80b360164fbeb1.zip
[w3m-dev 03761] eliminate compiler warnings
* ftp.c (ftp_login): Str tmp * table.c (feed_table_tag): p is used ifdef ID_EXT From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--ChangeLog8
-rw-r--r--ftp.c5
-rw-r--r--table.c4
3 files changed, 12 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index bbdc496..e5f3173 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-02-21 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 03761] eliminate compiler warnings
+ * ftp.c (ftp_login): Str tmp
+ * table.c (feed_table_tag): p is used ifdef ID_EXT
+
2003-02-21 WATANABE Katsuyuki <knabe@sannet.ne.jp>
* [w3m-dev 03760] Re: README.cygwin
@@ -7207,4 +7213,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.756 2003/02/20 15:38:21 ukai Exp $
+$Id: ChangeLog,v 1.757 2003/02/20 15:39:18 ukai Exp $
diff --git a/ftp.c b/ftp.c
index ac9720c..3a1f2fc 100644
--- a/ftp.c
+++ b/ftp.c
@@ -1,4 +1,4 @@
-/* $Id: ftp.c,v 1.26 2003/01/15 16:24:25 ukai Exp $ */
+/* $Id: ftp.c,v 1.27 2003/02/20 15:39:21 ukai Exp $ */
#include <stdio.h>
#include <pwd.h>
#include <Str.h>
@@ -105,7 +105,6 @@ ftp_close(FTP ftp)
static int
ftp_login(FTP ftp)
{
- Str tmp;
int sock, status;
sock = openSocket(ftp->host, "ftp", 21);
@@ -121,7 +120,7 @@ ftp_login(FTP ftp)
if (!getsockname(sock, (struct sockaddr *)&sockname, &socknamelen)) {
struct hostent *sockent;
- tmp = Strnew_charp(ftp->pass);
+ Str tmp = Strnew_charp(ftp->pass);
if ((sockent = gethostbyaddr((char *)&sockname.sin_addr,
sizeof(sockname.sin_addr),
diff --git a/table.c b/table.c
index 3271f1c..cfb8a65 100644
--- a/table.c
+++ b/table.c
@@ -1,4 +1,4 @@
-/* $Id: table.c,v 1.39 2003/01/23 18:01:08 ukai Exp $ */
+/* $Id: table.c,v 1.40 2003/02/20 15:39:22 ukai Exp $ */
/*
* HTML table
*/
@@ -2472,7 +2472,9 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode,
int width, struct parsed_tag *tag)
{
int cmd;
+#ifdef ID_EXT
char *p;
+#endif
struct table_cell *cell = &tbl->cell;
int colspan, rowspan;
int col, prev_col;