aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-05-26 11:26:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-05-26 11:26:42 +0000
commit482b3ba70273f2f3cde02e7e57907e1dcc5d9d31 (patch)
treecc21e1b078fc3075cacf3115d46b37773c80d845
parent752acedc0b120bd52ec07a09837147c135dbb986 (diff)
long/int cleanup to silence picky compiler warnings
-rw-r--r--lib/multi.c4
-rw-r--r--lib/url.c3
-rw-r--r--lib/urldata.h2
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/multi.c b/lib/multi.c
index c3463b0ce..92bf28151 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -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,
diff --git a/lib/url.c b/lib/url.c
index e9fa81168..be6c99dc2 100644
--- 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);
diff --git a/lib/urldata.h b/lib/urldata.h
index 8e47a6543..b2cdd8dcb 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -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 */