1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

Compiler warning fix

This commit is contained in:
Yang Tse 2006-10-09 11:21:40 +00:00
parent a1de9367ec
commit 15e3dfe1d3
2 changed files with 2 additions and 3 deletions

View File

@ -377,7 +377,7 @@ CURLMcode curl_multi_add_handle(CURLM *multi_handle,
cl = multi->closure; cl = multi->closure;
while(cl) { while(cl) {
struct closure *next = cl->next; 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 */ /* remove this handle from the closure list */
free(cl); free(cl);
if(prev) if(prev)

View File

@ -24,14 +24,13 @@ int test(char *URL)
char done=FALSE; char done=FALSE;
CURLM *m; CURLM *m;
int current=0; int current=0;
int i;
/* In windows, this will init the winsock stuff */ /* In windows, this will init the winsock stuff */
curl_global_init(CURL_GLOBAL_ALL); curl_global_init(CURL_GLOBAL_ALL);
curl = curl_easy_init(); curl = curl_easy_init();
if(!curl) if(!curl)
return 100 + i; /* major bad */ return 100; /* major bad */
curl_easy_setopt(curl, CURLOPT_URL, URL); curl_easy_setopt(curl, CURLOPT_URL, URL);
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1); curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);