Avoid C99 comments, use old-style C comments instead.
This doesn't make the code uglier or harder to read, yet it makes the code more portable. This also simplifies checking for other potential incompatibilities. "gcc -std=c89 -pedantic" can flag many incompatible constructs as warnings, but C99 comments will cause it to emit an error. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
82e5a82fd7
commit
a9486b02ec
@ -490,7 +490,7 @@ static int setup_index(struct alt_base *repo, unsigned char *sha1)
|
||||
{
|
||||
struct packed_git *new_pack;
|
||||
if (has_pack_file(sha1))
|
||||
return 0; // don't list this as something we can get
|
||||
return 0; /* don't list this as something we can get */
|
||||
|
||||
if (fetch_index(repo, sha1))
|
||||
return -1;
|
||||
@ -570,7 +570,7 @@ static void process_alternates_response(void *callback_data)
|
||||
base[serverlen - 1] != '/');
|
||||
i += 3;
|
||||
}
|
||||
// If the server got removed, give up.
|
||||
/* If the server got removed, give up. */
|
||||
okay = strchr(base, ':') - base + 3 <
|
||||
serverlen;
|
||||
} else if (alt_req->http_specific) {
|
||||
@ -581,7 +581,7 @@ static void process_alternates_response(void *callback_data)
|
||||
okay = 1;
|
||||
}
|
||||
}
|
||||
// skip 'objects' at end
|
||||
/* skip 'objects' at end */
|
||||
if (okay) {
|
||||
target = xmalloc(serverlen + posn - i - 6);
|
||||
strlcpy(target, base, serverlen);
|
||||
|
Reference in New Issue
Block a user