aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/multi.c2
-rw-r--r--tests/libtest/lib533.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 48863c8e6..041209c49 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -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)
diff --git a/tests/libtest/lib533.c b/tests/libtest/lib533.c
index 3a1e7dff6..dab8f6bb6 100644
--- a/tests/libtest/lib533.c
+++ b/tests/libtest/lib533.c
@@ -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);