diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-04-06 16:27:53 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-04-06 16:27:53 +0000 |
commit | a603190b2e1702537f859a648eb5e2b6910ff2e4 (patch) | |
tree | 6ae3da1ae67bc54359266d1939ca98395e32ec54 /ftp.c | |
parent | [w3m-dev 03838] W3M_LIBS splitted from LIBS (diff) | |
download | w3m-a603190b2e1702537f859a648eb5e2b6910ff2e4.tar.gz w3m-a603190b2e1702537f859a648eb5e2b6910ff2e4.zip |
[w3m-dev 03843] cleanup macros
* config.h.dist config.h.in etc.c file.c fm.h ftp.c linein.c
main.c rc.c:
delete EMACS_LIKE_LINEEDIT, VI_PREC_NUM, LABEL_TOPLINE,
NEXTPAGE_TOPLINE, FTPPASS_HOSTNAMEGEN
use_mark default FALSE
emacs_like_lineedit default FALSE
vi_prec_num default FALSE
add UseHistory, use_history
* NEWS: rc: use_history
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'ftp.c')
-rw-r--r-- | ftp.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: ftp.c,v 1.29 2003/03/06 14:26:14 ukai Exp $ */ +/* $Id: ftp.c,v 1.30 2003/04/06 16:27:54 ukai Exp $ */ #include <stdio.h> #include <pwd.h> #include <Str.h> @@ -15,7 +15,7 @@ #endif /* DEBUG */ #include <sys/socket.h> -#if defined(FTPPASS_HOSTNAMEGEN) || defined(INET6) +#if defined(INET6) #include <netinet/in.h> #include <netdb.h> #include <arpa/inet.h> @@ -119,7 +119,6 @@ ftp_login(FTP ftp) sock = openSocket(ftp->host, "ftp", 21); if (sock < 0) goto open_err; -#ifdef FTPPASS_HOSTNAMEGEN if (ftppass_hostnamegen && !strcmp(ftp->user, "anonymous")) { size_t n = strlen(ftp->pass); @@ -143,7 +142,6 @@ ftp_login(FTP ftp) } } } -#endif ftp->rf = newInputStream(sock); ftp->wf = fdopen(dup(sock), "wb"); if (!ftp->rf || !ftp->wf) |