mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
Fixed some compiler warnings with CURL_DISABLE_HTTP
This commit is contained in:
parent
c455254fd1
commit
9dcd0756ba
@ -357,6 +357,8 @@ static CURLcode readwrite_data(struct SessionHandle *data,
|
|||||||
ssize_t nread; /* number of bytes read */
|
ssize_t nread; /* number of bytes read */
|
||||||
bool is_empty_data = FALSE;
|
bool is_empty_data = FALSE;
|
||||||
|
|
||||||
|
*done = FALSE;
|
||||||
|
|
||||||
/* This is where we loop until we have read everything there is to
|
/* This is where we loop until we have read everything there is to
|
||||||
read or we get a EWOULDBLOCK */
|
read or we get a EWOULDBLOCK */
|
||||||
do {
|
do {
|
||||||
@ -1943,6 +1945,7 @@ CURLcode Curl_posttransfer(struct SessionHandle *data)
|
|||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef CURL_DISABLE_HTTP
|
||||||
/*
|
/*
|
||||||
* strlen_url() returns the length of the given URL if the spaces within the
|
* strlen_url() returns the length of the given URL if the spaces within the
|
||||||
* URL were properly URL encoded.
|
* URL were properly URL encoded.
|
||||||
@ -2162,6 +2165,7 @@ static char *concat_url(const char *base, const char *relurl)
|
|||||||
|
|
||||||
return newest;
|
return newest;
|
||||||
}
|
}
|
||||||
|
#endif /* CURL_DISABLE_HTTP */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Curl_follow() handles the URL redirect magic. Pass in the 'newurl' string
|
* Curl_follow() handles the URL redirect magic. Pass in the 'newurl' string
|
||||||
|
Loading…
Reference in New Issue
Block a user