Skip to content
Snippets Groups Projects
Commit 15e3dfe1 authored by Yang Tse's avatar Yang Tse
Browse files

Compiler warning fix

parent a1de9367
No related branches found
No related tags found
No related merge requests found
......@@ -377,7 +377,7 @@ CURLMcode curl_multi_add_handle(CURLM *multi_handle,
cl = multi->closure;
while(cl) {
struct closure *next = cl->next;
if(cl->easy_handle == easy_handle) {
if(cl->easy_handle == (struct SessionHandle *)easy_handle) {
/* remove this handle from the closure list */
free(cl);
if(prev)
......
......@@ -24,14 +24,13 @@ int test(char *URL)
char done=FALSE;
CURLM *m;
int current=0;
int i;
/* In windows, this will init the winsock stuff */
curl_global_init(CURL_GLOBAL_ALL);
curl = curl_easy_init();
if(!curl)
return 100 + i; /* major bad */
return 100; /* major bad */
curl_easy_setopt(curl, CURLOPT_URL, URL);
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment