]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
long/int cleanup to silence picky compiler warnings
authorDaniel Stenberg <daniel@haxx.se>
Fri, 26 May 2006 11:26:42 +0000 (11:26 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 26 May 2006 11:26:42 +0000 (11:26 +0000)
lib/multi.c
lib/url.c
lib/urldata.h

index c3463b0ced6a94f4c6fa6b46dc170af782b725e7..92bf281518aee5c7b0af5abf2d7133c2d5124b67 100644 (file)
@@ -82,7 +82,7 @@ typedef enum {
 
 struct socketstate {
   curl_socket_t socks[MAX_SOCKSPEREASYHANDLE];
-  long action; /* socket action bitmap */
+  unsigned int action; /* socket action bitmap */
 };
 
 struct Curl_one_easy {
@@ -185,7 +185,7 @@ struct Curl_sh_entry {
 /* bits for 'action' having no bits means this socket is not expecting any
    action */
 #define SH_READ  1
-#define SG_WRITE 2
+#define SH_WRITE 2
 
 /* make sure this socket is present in the hash for this handle */
 static int sh_addentry(struct curl_hash *sh,
index e9fa811687360e2e5425acd0d2b6cac1704579c6..be6c99dc2b73ac08924823336e2af86ea9ca32dd 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1950,7 +1950,8 @@ static int handleSock4Proxy(const char *proxy_name, struct connectdata *conn)
   {
     ssize_t actualread;
     ssize_t written;
-    int packetsize = 9 + strlen((char*)socksreq + 8); /* size including NUL */
+    int packetsize = 9 +
+      (int)strlen((char*)socksreq + 8); /* size including NUL */
 
     /* Send request */
     code = Curl_write(conn, sock, (char *)socksreq, packetsize, &written);
index 8e47a65439f2d368f0e4e45d342479154f8851c4..b2cdd8dcbd52488c2795ec999961c2fdfb6ea331 100644 (file)
@@ -881,7 +881,7 @@ struct UrlState {
      set, it holds an allocated connection. */
   struct connectdata **connects;
   long numconnects; /* size of the 'connects' array */
-  int lastconnect;  /* index of most recent connect or -1 if undefined */
+  long lastconnect;  /* index of most recent connect or -1 if undefined */
 
   char *headerbuff; /* allocated buffer to store headers in */
   size_t headersize;   /* size of the allocation */