Fixed some icc compiler warnings.
authorDan Fandrich <dan@coneharvesters.com>
Tue, 7 Aug 2007 00:10:27 +0000 (00:10 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 7 Aug 2007 00:10:27 +0000 (00:10 +0000)
lib/url.c
tests/libtest/lib540.c

index 5273fdb..8c32f03 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -260,7 +260,7 @@ CURLcode Curl_dupset(struct SessionHandle * dst, struct SessionHandle * src)
   memset(dst->set.str, 0, STRING_LAST * sizeof(char *));
 
   /* duplicate all strings */
-  for(i=0; i< STRING_LAST; i++) {
+  for(i=(enum dupstring)0; i< STRING_LAST; i++) {
     r = Curl_setstropt(&dst->set.str[i], src->set.str[i]);
     if (r != CURLE_OK)
       break;
index 4d22eb5..518afec 100644 (file)
@@ -87,16 +87,16 @@ static int loop(CURLM *cm, const char* url, const char* userpwd,
 
     while ((msg = curl_multi_info_read(cm, &Q))) {
       if (msg->msg == CURLMSG_DONE) {
-        char *url;
+        char *usedurl;
         CURL *e = msg->easy_handle;
-        curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &url);
-        fprintf(stderr, "R: %d - %s <%s>\n",
-                msg->data.result, curl_easy_strerror(msg->data.result), url);
+        curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &usedurl);
+        fprintf(stderr, "R: %d - %s <%s>\n", (int)msg->data.result,
+                curl_easy_strerror(msg->data.result), usedurl);
         curl_multi_remove_handle(cm, e);
         curl_easy_cleanup(e);
       }
       else {
-        fprintf(stderr, "E: CURLMsg (%d)\n", msg->msg);
+        fprintf(stderr, "E: CURLMsg (%d)\n", (int)msg->msg);
       }
     }
   }