1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[ftp] enum ftp_file_type -> ftp_file_type_T

This commit is contained in:
Witold Filipczyk 2022-01-28 16:58:58 +01:00
parent 04b2dce53f
commit 8f59249d9e
2 changed files with 4 additions and 2 deletions

View File

@ -220,7 +220,7 @@ parse_ftp_unix_response(struct ftp_file_info *info, char *src, int len)
/* Decide the file type. */
{
enum ftp_file_type type = *src++;
ftp_file_type_T type = *src++;
switch (type) {
case FTP_FILE_PLAINFILE:

View File

@ -18,9 +18,11 @@ enum ftp_file_type {
FTP_FILE_UNKNOWN = '?',
};
typedef char ftp_file_type_T;
/* Information about one file in a directory listing. */
struct ftp_file_info {
enum ftp_file_type type; /* File type */
ftp_file_type_T type; /* File type */
struct string name; /* File name */
struct string symlink; /* Link to which file points */
off_t size; /* File size. -1 if unknown. */