From 162c039e9d0b19bd98244e35e6265b2ff978c085 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 24 Nov 2007 23:18:21 +0000 Subject: reqdata doesn't exist anymore and the path moved to the UrlState struct --- lib/ldap.c | 8 ++++---- lib/tftp.c | 4 ---- lib/url.c | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/ldap.c b/lib/ldap.c index d3cee5189..4f5625c40 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -555,7 +555,7 @@ static bool unescape_elements (void *data, LDAPURLDesc *ludp) * * already known from 'conn->host.name'. * already known from 'conn->remote_port'. - * extract the rest from 'conn->data->reqdata.path+1'. All fields are optional. + * extract the rest from 'conn->data->state.path+1'. All fields are optional. * e.g. * ldap://:/??? * yields ludp->lud_dn = "". @@ -568,8 +568,8 @@ static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp) int i; if(!conn->data || - !conn->data->reqdata.path || - conn->data->reqdata.path[0] != '/' || + !conn->data->state.path || + conn->data->state.path[0] != '/' || !checkprefix(conn->protostr, conn->data->change.url)) return LDAP_INVALID_SYNTAX; @@ -579,7 +579,7 @@ static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp) /* parse DN (Distinguished Name). */ - ludp->lud_dn = strdup(conn->data->reqdata.path+1); + ludp->lud_dn = strdup(conn->data->state.path+1); if(!ludp->lud_dn) return LDAP_NO_MEMORY; diff --git a/lib/tftp.c b/lib/tftp.c index 245334ae7..dd64bef9f 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -676,10 +676,6 @@ static CURLcode Curl_tftp_done(struct connectdata *conn, CURLcode status, (void)status; /* unused */ (void)premature; /* not used */ -#if 0 - free(conn->data->reqdata.proto.tftp); - conn->data->reqdata.proto.tftp = NULL; -#endif Curl_pgrsDone(conn); return CURLE_OK; diff --git a/lib/url.c b/lib/url.c index bd7923320..e7c1412bf 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2249,7 +2249,7 @@ static void Curl_printPipeline(struct curl_llist *pipeline) curr = pipeline->head; while(curr) { struct SessionHandle *data = (struct SessionHandle *) curr->ptr; - infof(data, "Handle in pipeline: %s\n", data->reqdata.path); + infof(data, "Handle in pipeline: %s\n", data->state.path); curr = curr->next; } } -- cgit v1.2.3