From 513c06f2d0101ebd1ee0329f322151d2dd394ae1 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 3 Jan 2006 01:30:46 +0100 Subject: [PATCH] Remove last remains of the built-in FTP parser testing --- src/protocol/ftp/ftp.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/protocol/ftp/ftp.c b/src/protocol/ftp/ftp.c index 55d268fd..e118b344 100644 --- a/src/protocol/ftp/ftp.c +++ b/src/protocol/ftp/ftp.c @@ -1141,9 +1141,6 @@ ftp_process_dirlist(struct cache_entry *cached, off_t *pos, { int ret = 0; -#define end_ftp_dirlist_processing() /* Nothing to free */ -#define get_ftp_dirlist_offset(retval) (retval) - while (1) { struct ftp_file_info ftp_info = INIT_FTP_FILE_INFO; unsigned char *buf = buffer + ret; @@ -1165,8 +1162,7 @@ ftp_process_dirlist(struct cache_entry *cached, off_t *pos, if (bufp && buf[bufp - 1] == ASCII_CR) bufp--; } else { if (!bufp || (!last && bufl < FTP_BUF_SIZE)) { - end_ftp_dirlist_processing(); - return get_ftp_dirlist_offset(ret); + return ret; } ret += bufp; @@ -1185,8 +1181,7 @@ ftp_process_dirlist(struct cache_entry *cached, off_t *pos, retv = display_dir_entry(cached, pos, tries, colorize_dir, dircolor, &ftp_info); if (retv < 0) { - end_ftp_dirlist_processing(); - return get_ftp_dirlist_offset(ret); + return ret; } } #ifdef DEBUG_FTP_PARSER