whitespace cleanup.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Jan 31, 2006 at 18:15 UTC
8fcf7f9af5ba629f56f491791ae46ad2e939f3b5
1 file changed
+10
-11
http-fetch.c
+10
-11
@@ -220,7 +220,6 @@ static void start_object_request(struct object_request *obj_req)
220
free(obj_req->url);
221
return;
222
}
223
-
223
}
224
225
static void finish_object_request(struct object_request *obj_req)
@@ -326,7 +325,7 @@ void fill_active_slots(void)
325
slot->curl = NULL;
326
}
327
slot = slot->next;
329
- }
328
+ }
329
}
330
#endif
331
@@ -382,10 +381,10 @@ static int fetch_index(struct alt_base *repo, unsigned char *sha1)
381
382
if (get_verbosely)
383
fprintf(stderr, "Getting index for pack %s\n", hex);
385
-
384
+
385
url = xmalloc(strlen(repo->base) + 64);
386
sprintf(url, "%s/objects/pack/pack-%s.idx", repo->base, hex);
388
-
387
+
388
filename = sha1_pack_index_name(sha1);
389
snprintf(tmpfile, sizeof(tmpfile), "%s.temp", filename);
390
indexfile = fopen(tmpfile, "a");
@@ -504,7 +503,7 @@ static void process_alternates_response(void *callback_data)
503
} else if (!memcmp(data + i, "../", 3)) {
504
i += 3;
505
serverlen = strlen(base);
507
- while (i + 2 < posn &&
506
+ while (i + 2 < posn &&
507
!memcmp(data + i, "../", 3)) {
508
do {
509
serverlen--;
@@ -513,7 +512,7 @@ static void process_alternates_response(void *callback_data)
512
i += 3;
513
}
514
// If the server got removed, give up.
516
- okay = strchr(base, ':') - base + 3 <
515
+ okay = strchr(base, ':') - base + 3 <
516
serverlen;
517
} else if (alt_req->http_specific) {
518
char *colon = strchr(data + i, ':');
@@ -531,7 +530,7 @@ static void process_alternates_response(void *callback_data)
530
posn - i - 7);
531
target[serverlen + posn - i - 7] = '\0';
532
if (get_verbosely)
534
- fprintf(stderr,
533
+ fprintf(stderr,
534
"Also look at %s\n", target);
535
newalt = xmalloc(sizeof(*newalt));
536
newalt->next = NULL;
@@ -580,7 +579,7 @@ static void fetch_alternates(char *base)
579
580
if (get_verbosely)
581
fprintf(stderr, "Getting alternates list for %s\n", base);
583
-
582
+
583
url = xmalloc(strlen(base) + 31);
584
sprintf(url, "%s/objects/info/http-alternates", base);
585
@@ -630,7 +629,7 @@ static int fetch_indices(struct alt_base *repo)
629
630
if (get_verbosely)
631
fprintf(stderr, "Getting pack list for %s\n", repo->base);
633
-
632
+
633
url = xmalloc(strlen(repo->base) + 21);
634
sprintf(url, "%s/objects/info/packs", repo->base);
635
@@ -844,7 +843,7 @@ int fetch(unsigned char *sha1)
843
fetch_alternates(alt->base);
844
altbase = altbase->next;
845
}
847
- return error("Unable to find %s under %s\n", sha1_to_hex(sha1),
846
+ return error("Unable to find %s under %s\n", sha1_to_hex(sha1),
847
alt->base);
848
}
849
@@ -905,7 +904,7 @@ int fetch_ref(char *ref, unsigned char *sha1)
904
buffer.posn = 0;
905
buffer.buffer = hex;
906
hex[41] = '\0';
908
-
907
+
908
url = quote_ref_url(base, ref);
909
slot = get_active_slot();
910
slot->results = &results;