aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-15 06:55:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-15 06:55:42 +0000
commit10ab0821887f1e82e6ffbca0ba82c1619d3684bb (patch)
tree9529e8c04a1fd90963ca2a3bcf69bf433b598c74 /lib
parent4999087879be21cc2f0a65edc9f2dd4f877b94d5 (diff)
non-public functions should not use CURL * as arguments, so I changed them
to use 'struct UrlData *' instead
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/url.c b/lib/url.c
index 7358caf46..edbbf7b41 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -106,6 +106,7 @@
#include "http.h"
#include "file.h"
#include "ldap.h"
+#include "url.h"
#include <curl/types.h>
@@ -142,10 +143,8 @@ RETSIGTYPE alarmfunc(int signal)
}
#endif
-CURLcode Curl_close(CURL *curl)
+CURLcode Curl_close(struct UrlData *data)
{
- struct UrlData *data=(struct UrlData *)curl;
-
/* Loop through all open connections and kill them one by one */
while(-1 != ConnectionKillOne(data));
@@ -197,7 +196,7 @@ int my_getpass(void *clientp, const char *prompt, char* buffer, int buflen )
}
-CURLcode Curl_open(CURL **curl)
+CURLcode Curl_open(struct UrlData **curl)
{
/* We don't yet support specifying the URL at this point */
struct UrlData *data;
@@ -283,9 +282,8 @@ CURLcode Curl_open(CURL **curl)
return CURLE_OUT_OF_MEMORY;
}
-CURLcode Curl_setopt(CURL *curl, CURLoption option, ...)
+CURLcode Curl_setopt(struct UrlData *data, CURLoption option, ...)
{
- struct UrlData *data = curl;
va_list param;
char *cookiefile;