From: Enlightenment S. <no-...@en...> - 2010-10-08 15:17:10
|
Log: 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 <ku...@pr...> Author: bdilly Date: 2010-10-08 08:17:01 -0700 (Fri, 08 Oct 2010) New Revision: 53189 Modified: trunk/ecore/src/lib/ecore_con/Ecore_Con.h trunk/ecore/src/lib/ecore_con/ecore_con_url.c Modified: trunk/ecore/src/lib/ecore_con/Ecore_Con.h =================================================================== --- trunk/ecore/src/lib/ecore_con/Ecore_Con.h 2010-10-08 14:13:53 UTC (rev 53188) +++ trunk/ecore/src/lib/ecore_con/Ecore_Con.h 2010-10-08 15:17:01 UTC (rev 53189) @@ -493,7 +493,7 @@ 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, Modified: trunk/ecore/src/lib/ecore_con/ecore_con_url.c =================================================================== --- trunk/ecore/src/lib/ecore_con/ecore_con_url.c 2010-10-08 14:13:53 UTC (rev 53188) +++ trunk/ecore/src/lib/ecore_con/ecore_con_url.c 2010-10-08 15:17:01 UTC (rev 53189) @@ -969,7 +969,7 @@ * @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 @@ 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 } |