mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
Fix some compiler warnings.
This commit is contained in:
parent
52db6e370d
commit
154fc29f58
@ -1709,7 +1709,7 @@ http_connect_cleanup:
|
|||||||
|
|
||||||
/* returns a socket handle, or 0 if there are no more waiting sockets,
|
/* returns a socket handle, or 0 if there are no more waiting sockets,
|
||||||
or < 0 if there was an error */
|
or < 0 if there was an error */
|
||||||
static int accept_connection(int sock)
|
static curl_socket_t accept_connection(curl_socket_t sock)
|
||||||
{
|
{
|
||||||
curl_socket_t msgsock = CURL_SOCKET_BAD;
|
curl_socket_t msgsock = CURL_SOCKET_BAD;
|
||||||
int error;
|
int error;
|
||||||
@ -1788,8 +1788,8 @@ static int accept_connection(int sock)
|
|||||||
|
|
||||||
/* returns 1 if the connection should be serviced again immediately, 0 if there
|
/* returns 1 if the connection should be serviced again immediately, 0 if there
|
||||||
is no data waiting, or < 0 if it should be closed */
|
is no data waiting, or < 0 if it should be closed */
|
||||||
static int service_connection(int msgsock, struct httprequest *req,
|
static int service_connection(curl_socket_t msgsock, struct httprequest *req,
|
||||||
int listensock, const char *hostport)
|
curl_socket_t listensock, const char *hostport)
|
||||||
{
|
{
|
||||||
if(got_exit_signal)
|
if(got_exit_signal)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user