1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

long/int cleanup to silence picky compiler warnings

This commit is contained in:
Daniel Stenberg 2006-05-26 11:26:42 +00:00
parent 752acedc0b
commit 482b3ba702
3 changed files with 5 additions and 4 deletions

View File

@ -82,7 +82,7 @@ typedef enum {
struct socketstate { struct socketstate {
curl_socket_t socks[MAX_SOCKSPEREASYHANDLE]; curl_socket_t socks[MAX_SOCKSPEREASYHANDLE];
long action; /* socket action bitmap */ unsigned int action; /* socket action bitmap */
}; };
struct Curl_one_easy { 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 /* bits for 'action' having no bits means this socket is not expecting any
action */ action */
#define SH_READ 1 #define SH_READ 1
#define SG_WRITE 2 #define SH_WRITE 2
/* make sure this socket is present in the hash for this handle */ /* make sure this socket is present in the hash for this handle */
static int sh_addentry(struct curl_hash *sh, static int sh_addentry(struct curl_hash *sh,

View File

@ -1950,7 +1950,8 @@ static int handleSock4Proxy(const char *proxy_name, struct connectdata *conn)
{ {
ssize_t actualread; ssize_t actualread;
ssize_t written; 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 */ /* Send request */
code = Curl_write(conn, sock, (char *)socksreq, packetsize, &written); code = Curl_write(conn, sock, (char *)socksreq, packetsize, &written);

View File

@ -881,7 +881,7 @@ struct UrlState {
set, it holds an allocated connection. */ set, it holds an allocated connection. */
struct connectdata **connects; struct connectdata **connects;
long numconnects; /* size of the 'connects' array */ 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 */ char *headerbuff; /* allocated buffer to store headers in */
size_t headersize; /* size of the allocation */ size_t headersize; /* size of the allocation */