struct socketstate {
curl_socket_t socks[MAX_SOCKSPEREASYHANDLE];
- long action; /* socket action bitmap */
+ unsigned int action; /* socket action bitmap */
};
struct Curl_one_easy {
/* 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,
{
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);
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 */