commit 0ae335b310d06bd9c160b2a1de0c6712631a6c34
parent 5bdb7d432da349420836b4e670549d7a241006e1
Author: ukai <ukai>
Date: Thu, 20 Feb 2003 15:39:18 +0000
[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:
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git 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
diff --git a/ftp.c b/ftp.c
@@ -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
@@ -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;