Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
http-fetch: Tidy control flow in process_alternate_response
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 1 Feb 2006 11:44:39 +0000
(11:44 +0000)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 6 Feb 2006 00:49:17 +0000
(16:49 -0800)
It's a bit convoluted. Tidy it up.
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
http-fetch.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
7982d74
)
diff --git
a/http-fetch.c
b/http-fetch.c
index 555e95d5a89e7ae0e0370e66102b9e15987c8a4c..bddbd6b10068edfa7786266feb276a404a9551e2 100644
(file)
--- a/
http-fetch.c
+++ b/
http-fetch.c
@@
-468,13
+468,11
@@
static void process_alternates_response(void *callback_data)
alt_req->url);
active_requests++;
slot->in_use = 1;
- if (start_active_slot(slot)) {
- return;
- } else {
+ if (!start_active_slot(slot)) {
got_alternates = -1;
slot->in_use = 0;
- return;
}
+ return;
}
} else if (slot->curl_result != CURLE_OK) {
if (slot->http_code != 404 &&