mirror of
https://github.com/curl/curl.git
synced 2026-07-28 09:53:06 +03:00
lib: rename struct 'http_req' to 'httpreq'
Because FreeBSD 14 kidnapped the name. Ref: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271526 Fixes #11163 Closes #11164
This commit is contained in:
parent
36e998b18b
commit
54ce13d3ff
4 changed files with 17 additions and 17 deletions
16
lib/http.c
16
lib/http.c
|
|
@ -4537,13 +4537,13 @@ static char *my_strndup(const char *ptr, size_t len)
|
|||
return copy;
|
||||
}
|
||||
|
||||
CURLcode Curl_http_req_make(struct http_req **preq,
|
||||
CURLcode Curl_http_req_make(struct httpreq **preq,
|
||||
const char *method, size_t m_len,
|
||||
const char *scheme, size_t s_len,
|
||||
const char *authority, size_t a_len,
|
||||
const char *path, size_t p_len)
|
||||
{
|
||||
struct http_req *req;
|
||||
struct httpreq *req;
|
||||
CURLcode result = CURLE_OUT_OF_MEMORY;
|
||||
|
||||
DEBUGASSERT(method);
|
||||
|
|
@ -4580,7 +4580,7 @@ out:
|
|||
return result;
|
||||
}
|
||||
|
||||
static CURLcode req_assign_url_authority(struct http_req *req, CURLU *url)
|
||||
static CURLcode req_assign_url_authority(struct httpreq *req, CURLU *url)
|
||||
{
|
||||
char *user, *pass, *host, *port;
|
||||
struct dynbuf buf;
|
||||
|
|
@ -4646,7 +4646,7 @@ out:
|
|||
return result;
|
||||
}
|
||||
|
||||
static CURLcode req_assign_url_path(struct http_req *req, CURLU *url)
|
||||
static CURLcode req_assign_url_path(struct httpreq *req, CURLU *url)
|
||||
{
|
||||
char *path, *query;
|
||||
struct dynbuf buf;
|
||||
|
|
@ -4694,11 +4694,11 @@ out:
|
|||
return result;
|
||||
}
|
||||
|
||||
CURLcode Curl_http_req_make2(struct http_req **preq,
|
||||
CURLcode Curl_http_req_make2(struct httpreq **preq,
|
||||
const char *method, size_t m_len,
|
||||
CURLU *url, const char *scheme_default)
|
||||
{
|
||||
struct http_req *req;
|
||||
struct httpreq *req;
|
||||
CURLcode result = CURLE_OUT_OF_MEMORY;
|
||||
CURLUcode uc;
|
||||
|
||||
|
|
@ -4738,7 +4738,7 @@ out:
|
|||
return result;
|
||||
}
|
||||
|
||||
void Curl_http_req_free(struct http_req *req)
|
||||
void Curl_http_req_free(struct httpreq *req)
|
||||
{
|
||||
if(req) {
|
||||
free(req->scheme);
|
||||
|
|
@ -4778,7 +4778,7 @@ static bool h2_non_field(const char *name, size_t namelen)
|
|||
}
|
||||
|
||||
CURLcode Curl_http_req_to_h2(struct dynhds *h2_headers,
|
||||
struct http_req *req, struct Curl_easy *data)
|
||||
struct httpreq *req, struct Curl_easy *data)
|
||||
{
|
||||
const char *scheme = NULL, *authority = NULL;
|
||||
struct dynhds_entry *e;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue