mirror of
https://github.com/curl/curl.git
synced 2026-08-26 15:13:34 +03:00
Enabled a few more gcc warnings with --enable-debug. Renamed a few
variables to avoid shadowing global declarations.
This commit is contained in:
parent
9c5cd6c413
commit
16b95fc773
16 changed files with 102 additions and 98 deletions
|
|
@ -218,7 +218,7 @@ void curl_multi_dump(CURLM *multi_handle);
|
|||
static void multistate(struct Curl_one_easy *easy, CURLMstate state)
|
||||
{
|
||||
#ifdef CURLDEBUG
|
||||
long index = -5000;
|
||||
long connectindex = -5000;
|
||||
#endif
|
||||
CURLMstate oldstate = easy->state;
|
||||
|
||||
|
|
@ -231,12 +231,12 @@ static void multistate(struct Curl_one_easy *easy, CURLMstate state)
|
|||
#ifdef CURLDEBUG
|
||||
if(easy->state > CURLM_STATE_CONNECT &&
|
||||
easy->state < CURLM_STATE_COMPLETED)
|
||||
index = easy->easy_conn->connectindex;
|
||||
connectindex = easy->easy_conn->connectindex;
|
||||
|
||||
infof(easy->easy_handle,
|
||||
"STATE: %s => %s handle %p; (connection #%ld) \n",
|
||||
statename[oldstate], statename[easy->state],
|
||||
(char *)easy, index);
|
||||
(char *)easy, connectindex);
|
||||
#endif
|
||||
if(state == CURLM_STATE_COMPLETED)
|
||||
/* changing to COMPLETED means there's one less easy handle 'alive' */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue