mirror of
https://github.com/curl/curl.git
synced 2026-08-02 20:20:28 +03:00
Compiler warning fix
This commit is contained in:
parent
b0f6e7cee4
commit
bb87b65f08
2 changed files with 6 additions and 6 deletions
|
|
@ -188,7 +188,7 @@ static void multistate(struct Curl_one_easy *easy, CURLMstate state)
|
|||
"CANCELLED"
|
||||
};
|
||||
CURLMstate oldstate = easy->state;
|
||||
int index = -1;
|
||||
long index = -1;
|
||||
#endif
|
||||
|
||||
easy->state = state;
|
||||
|
|
@ -199,7 +199,7 @@ static void multistate(struct Curl_one_easy *easy, CURLMstate state)
|
|||
index = easy->easy_conn->connectindex;
|
||||
|
||||
infof(easy->easy_handle,
|
||||
"STATE: %s => %s handle %p; (connection #%d) \n",
|
||||
"STATE: %s => %s handle %p; (connection #%ld) \n",
|
||||
statename[oldstate], statename[easy->state],
|
||||
(char *)easy, index);
|
||||
#endif
|
||||
|
|
@ -1554,7 +1554,7 @@ CURLMcode curl_multi_setopt(CURLM *multi_handle,
|
|||
multi->socket_userp = va_arg(param, void *);
|
||||
break;
|
||||
case CURLMOPT_PIPELINING:
|
||||
multi->pipelining_enabled = va_arg(param, long);
|
||||
multi->pipelining_enabled = (bool)(0 != va_arg(param, long));
|
||||
break;
|
||||
default:
|
||||
res = CURLM_UNKNOWN_OPTION;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue