diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-02-20 15:39:18 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-02-20 15:39:18 +0000 |
commit | 4336b447de0ffda614a3fc463a80b360164fbeb1 (patch) | |
tree | 1052e9e093ddcc033095fb5905422f6c421d778a /ftp.c | |
parent | [w3m-dev 03760] Re: README.cygwin (diff) | |
download | w3m-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 'ftp.c')
-rw-r--r-- | ftp.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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), |