mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-30 03:26:23 -04:00
Remove last remains of the built-in FTP parser testing
This commit is contained in:
parent
90a1440c03
commit
513c06f2d0
@ -1141,9 +1141,6 @@ ftp_process_dirlist(struct cache_entry *cached, off_t *pos,
|
|||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
#define end_ftp_dirlist_processing() /* Nothing to free */
|
|
||||||
#define get_ftp_dirlist_offset(retval) (retval)
|
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
struct ftp_file_info ftp_info = INIT_FTP_FILE_INFO;
|
struct ftp_file_info ftp_info = INIT_FTP_FILE_INFO;
|
||||||
unsigned char *buf = buffer + ret;
|
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--;
|
if (bufp && buf[bufp - 1] == ASCII_CR) bufp--;
|
||||||
} else {
|
} else {
|
||||||
if (!bufp || (!last && bufl < FTP_BUF_SIZE)) {
|
if (!bufp || (!last && bufl < FTP_BUF_SIZE)) {
|
||||||
end_ftp_dirlist_processing();
|
return ret;
|
||||||
return get_ftp_dirlist_offset(ret);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ret += bufp;
|
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,
|
retv = display_dir_entry(cached, pos, tries, colorize_dir,
|
||||||
dircolor, &ftp_info);
|
dircolor, &ftp_info);
|
||||||
if (retv < 0) {
|
if (retv < 0) {
|
||||||
end_ftp_dirlist_processing();
|
return ret;
|
||||||
return get_ftp_dirlist_offset(ret);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef DEBUG_FTP_PARSER
|
#ifdef DEBUG_FTP_PARSER
|
||||||
|
Loading…
Reference in New Issue
Block a user