summaryrefslogtreecommitdiff
path: root/lib/ftplistparser.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-04-20 10:29:44 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-04-23 22:52:48 +0200
commit98a768f0a6d23e6d3e209fc543d60e260dbcc46b (patch)
treefe2e8ff340dbea8b8db9f75a007c13ed3fc4e3f9 /lib/ftplistparser.c
parent5e5725a47651b4398789b59074aef09bdc735869 (diff)
downloadcurl-98a768f0a6d23e6d3e209fc543d60e260dbcc46b.tar.gz
ftplistparser: renamed some members and variables
... to make them better spell out what they're for.
Diffstat (limited to 'lib/ftplistparser.c')
-rw-r--r--lib/ftplistparser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ftplistparser.c b/lib/ftplistparser.c
index 7668ea8c8..813e954c7 100644
--- a/lib/ftplistparser.c
+++ b/lib/ftplistparser.c
@@ -270,9 +270,9 @@ static CURLcode ftp_pl_insert_finfo(struct connectdata *conn,
{
curl_fnmatch_callback compare;
struct WildcardData *wc = &conn->data->wildcard;
- struct ftp_wc_tmpdata *tmpdata = wc->tmp;
+ struct ftp_wc *ftpwc = wc->protdata;
struct curl_llist *llist = &wc->filelist;
- struct ftp_parselist_data *parser = tmpdata->parser;
+ struct ftp_parselist_data *parser = ftpwc->parser;
bool add = TRUE;
struct curl_fileinfo *finfo = &infop->info;
@@ -316,7 +316,7 @@ static CURLcode ftp_pl_insert_finfo(struct connectdata *conn,
Curl_fileinfo_dtor(NULL, finfo);
}
- tmpdata->parser->file_data = NULL;
+ ftpwc->parser->file_data = NULL;
return CURLE_OK;
}
@@ -325,8 +325,8 @@ size_t Curl_ftp_parselist(char *buffer, size_t size, size_t nmemb,
{
size_t bufflen = size*nmemb;
struct connectdata *conn = (struct connectdata *)connptr;
- struct ftp_wc_tmpdata *tmpdata = conn->data->wildcard.tmp;
- struct ftp_parselist_data *parser = tmpdata->parser;
+ struct ftp_wc *ftpwc = conn->data->wildcard.protdata;
+ struct ftp_parselist_data *parser = ftpwc->parser;
struct fileinfo *infop;
struct curl_fileinfo *finfo;
unsigned long i = 0;