diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-10 16:01:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-10 16:01:47 +0000 |
commit | 7225b1400236c786add1516e38676d65a7bbd327 (patch) | |
tree | 5ad3dd30c79f886bc28cabe8e7f01e0613589fb9 /lib/transfer.c | |
parent | 85838a8966692831cf7d3744b34f5a04260366fd (diff) |
curl_socket_t mistakes cleanup
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index b20204605..dd1ceef48 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1368,7 +1368,10 @@ void Curl_single_fdset(struct connectdata *conn, } if(conn->keep.keepon & KEEP_WRITE) { FD_SET(conn->writesockfd, write_fd_set); - if(conn->writesockfd > *max_fd) + + /* since sockets are curl_socket_t nowadays, we typecast it to int here + to compare it nicely */ + if((int)conn->writesockfd > *max_fd) *max_fd = conn->writesockfd; conn->keep.writefdp = write_fd_set; /* store the address of the set */ } |