From a603190b2e1702537f859a648eb5e2b6910ff2e4 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sun, 6 Apr 2003 16:27:53 +0000 Subject: [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 --- ftp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ftp.c') diff --git a/ftp.c b/ftp.c index b9949c8..d0a63ca 100644 --- a/ftp.c +++ b/ftp.c @@ -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 #include #include @@ -15,7 +15,7 @@ #endif /* DEBUG */ #include -#if defined(FTPPASS_HOSTNAMEGEN) || defined(INET6) +#if defined(INET6) #include #include #include @@ -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) -- cgit v1.2.3