]> granicus.if.org Git - curl/commitdiff
made 'connectindex' a long variable to prevent compiler warnings when
authorDaniel Stenberg <daniel@haxx.se>
Sun, 4 Jul 2004 21:36:14 +0000 (21:36 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 4 Jul 2004 21:36:14 +0000 (21:36 +0000)
implicitly converting it to int

lib/url.c
lib/urldata.h

index 1ed05f0217c65e16fd88484f875bf3e2fdc4a370..c97ab6a1f92170e7bf502a50dafba27c88cd7f86 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1453,7 +1453,7 @@ CURLcode Curl_disconnect(struct connectdata *conn)
 
   if(-1 != conn->connectindex) {
     /* unlink ourselves! */
-    infof(data, "Closing connection #%d\n", conn->connectindex);
+    infof(data, "Closing connection #%ld\n", conn->connectindex);
     data->state.connects[conn->connectindex] = NULL;
   }
 
@@ -3123,7 +3123,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
 
     *in_connect = conn;      /* return this instead! */
 
-    infof(data, "Re-using existing connection! (#%d) with host %s\n",
+    infof(data, "Re-using existing connection! (#%ld) with host %s\n",
           conn->connectindex, conn->host.dispname);
   }
   else {
@@ -3500,7 +3500,7 @@ CURLcode Curl_done(struct connectdata **connp,
       result = res2;
   }
   else
-    infof(data, "Connection #%d to host %s left intact\n",
+    infof(data, "Connection #%ld to host %s left intact\n",
           conn->connectindex, conn->host.dispname);
 
   return result;
index 03bc5f394253b13b81c29fb0a88e320f65c7b0d7..7be2a9324150402c0a0410b35f977d23b8cd24ff 100644 (file)
@@ -429,7 +429,7 @@ struct Curl_async {
 struct connectdata {
   /**** Fields set when inited and not modified again */
   struct SessionHandle *data; /* link to the root CURL struct */
-  int connectindex; /* what index in the connects index this particular
+  long connectindex; /* what index in the connects index this particular
                        struct has */
 
   long protocol; /* PROT_* flags concerning the protocol set */