string formatting: fix 25+ printf-style format strings

This commit is contained in:
Yang Tse 2013-07-23 15:59:07 +02:00
parent 1a593191c2
commit de052ca6fc
12 changed files with 56 additions and 34 deletions

View file

@ -131,7 +131,7 @@ static void mstate(struct Curl_one_easy *easy, CURLMstate state
infof(easy->easy_handle,
"STATE: %s => %s handle %p; line %d (connection #%ld) \n",
statename[oldstate], statename[easy->state],
(char *)easy, lineno, connection_id);
(void *)easy, lineno, connection_id);
}
#endif
if(state == CURLM_STATE_COMPLETED)
@ -966,7 +966,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
we're using gets cleaned up and we're left with nothing. */
if(data->state.pipe_broke) {
infof(data, "Pipe broke: handle 0x%p, url = %s\n",
easy, data->state.path);
(void *)easy, data->state.path);
if(easy->state < CURLM_STATE_COMPLETED) {
/* Head back to the CONNECT state */