aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-18 20:38:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-18 20:38:18 +0000
commit381c6c5d520a3250a0385f7f76e872e779d7aaac (patch)
treea4488887a2f9079cacc0fc045b4da4a9f11f8ca6 /lib
parent9df8f9a63dc08b12475f1c56f1beddf8ce8649f0 (diff)
minor fix to not shadow a variable
Diffstat (limited to 'lib')
-rw-r--r--lib/multi.c33
1 files changed, 15 insertions, 18 deletions
diff --git a/lib/multi.c b/lib/multi.c
index c0e4760b8..a89c2b3de 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -389,26 +389,23 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
case CURLM_STATE_WAITCONNECT:
/* awaiting a completion of an asynch connect */
- {
- bool connected;
- easy->result = Curl_is_connected(easy->easy_conn,
- easy->easy_conn->firstsocket,
- &connected);
- if(connected)
- easy->result = Curl_protocol_connect(easy->easy_conn, NULL);
+ easy->result = Curl_is_connected(easy->easy_conn,
+ easy->easy_conn->firstsocket,
+ &connected);
+ if(connected)
+ easy->result = Curl_protocol_connect(easy->easy_conn, NULL);
- if(CURLE_OK != easy->result) {
- /* failure detected */
- Curl_disconnect(easy->easy_conn); /* close the connection */
- easy->easy_conn = NULL; /* no more connection */
- break;
- }
+ if(CURLE_OK != easy->result) {
+ /* failure detected */
+ Curl_disconnect(easy->easy_conn); /* close the connection */
+ easy->easy_conn = NULL; /* no more connection */
+ break;
+ }
- if(connected) {
- /* after the connect has completed, go DO */
- easy->state = CURLM_STATE_DO;
- result = CURLM_CALL_MULTI_PERFORM;
- }
+ if(connected) {
+ /* after the connect has completed, go DO */
+ easy->state = CURLM_STATE_DO;
+ result = CURLM_CALL_MULTI_PERFORM;
}
break;