forked from enlightenment/efl
In practice, it was already being treated as an Eina_Bool, so let us
declare it as such and simplify the code. Author: Raphael Kubo da Costa <kubo@profusion.mobi> SVN revision: 53189
This commit is contained in:
parent
59208f38b8
commit
b26732d09c
|
@ -493,7 +493,7 @@ EAPI Eina_Bool ecore_con_url_ftp_upload(Ecore_Con_Url *url_con,
|
|||
const char *pass,
|
||||
const char *upload_dir);
|
||||
EAPI void ecore_con_url_verbose_set(Ecore_Con_Url *url_con,
|
||||
int verbose);
|
||||
Eina_Bool verbose);
|
||||
EAPI void ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con,
|
||||
int use_epsv);
|
||||
EAPI Eina_Bool ecore_con_url_http_post_send(Ecore_Con_Url *url_con,
|
||||
|
|
|
@ -969,7 +969,7 @@ ecore_con_url_http_post_send(Ecore_Con_Url *url_con, void *httppost)
|
|||
* @return FIXME: To be more documented.
|
||||
*/
|
||||
EAPI void
|
||||
ecore_con_url_verbose_set(Ecore_Con_Url *url_con, int verbose)
|
||||
ecore_con_url_verbose_set(Ecore_Con_Url *url_con, Eina_Bool verbose)
|
||||
{
|
||||
#ifdef HAVE_CURL
|
||||
if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL))
|
||||
|
@ -985,13 +985,7 @@ ecore_con_url_verbose_set(Ecore_Con_Url *url_con, int verbose)
|
|||
if (!url_con->url)
|
||||
return;
|
||||
|
||||
if (verbose ==
|
||||
EINA_TRUE)
|
||||
curl_easy_setopt(url_con->curl_easy, CURLOPT_VERBOSE,
|
||||
1);
|
||||
else
|
||||
curl_easy_setopt(url_con->curl_easy, CURLOPT_VERBOSE, 0);
|
||||
|
||||
curl_easy_setopt(url_con->curl_easy, CURLOPT_VERBOSE, (int)verbose);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue