From 0225d17bf3156a7951c3e04639209b847a729fb4 Mon Sep 17 00:00:00 2001 From: glima Date: Fri, 8 Oct 2010 18:41:49 +0000 Subject: [PATCH] Yet another int -> Eina_Bool fix, similar to the one done to ecore_con_url_verbose_set. Patch by Rafael Kubo. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@53197 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_con/Ecore_Con.h | 2 +- src/lib/ecore_con/ecore_con_url.c | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/lib/ecore_con/Ecore_Con.h b/src/lib/ecore_con/Ecore_Con.h index e98ae0f..6bc2c23 100644 --- a/src/lib/ecore_con/Ecore_Con.h +++ b/src/lib/ecore_con/Ecore_Con.h @@ -495,7 +495,7 @@ EAPI Eina_Bool ecore_con_url_ftp_upload(Ecore_Con_Url *url_con, EAPI void ecore_con_url_verbose_set(Ecore_Con_Url *url_con, Eina_Bool verbose); EAPI void ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con, - int use_epsv); + Eina_Bool use_epsv); EAPI Eina_Bool ecore_con_url_http_post_send(Ecore_Con_Url *url_con, void *curl_httppost); diff --git a/src/lib/ecore_con/ecore_con_url.c b/src/lib/ecore_con/ecore_con_url.c index 01937d9..09e6f6d 100644 --- a/src/lib/ecore_con/ecore_con_url.c +++ b/src/lib/ecore_con/ecore_con_url.c @@ -1003,7 +1003,7 @@ ecore_con_url_verbose_set(Ecore_Con_Url *url_con, Eina_Bool verbose) * @return FIXME: To be more documented. */ EAPI void -ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con, int use_epsv) +ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con, Eina_Bool use_epsv) { #ifdef HAVE_CURL if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL)) @@ -1019,13 +1019,7 @@ ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con, int use_epsv) if (!url_con->url) return; - if (use_epsv == - EINA_TRUE) - curl_easy_setopt(url_con->curl_easy, CURLOPT_FTP_USE_EPSV, - 1); - else - curl_easy_setopt(url_con->curl_easy, CURLOPT_FTP_USE_EPSV, 0); - + curl_easy_setopt(url_con->curl_easy, CURLOPT_FTP_USE_EPSV, (int)use_epsv); #endif } -- 2.7.4