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
@ -453,7 +453,7 @@ int use_packed_git(struct packed_git *p)
|
||||
{
|
||||
if (!p->pack_size) {
|
||||
struct stat st;
|
||||
// We created the struct before we had the pack
|
||||
/* We created the struct before we had the pack */
|
||||
stat(p->pack_name, &st);
|
||||
if (!S_ISREG(st.st_mode))
|
||||
die("packfile %s not a regular file", p->pack_name);
|
||||
@ -1504,7 +1504,7 @@ static void *repack_object(const unsigned char *sha1, unsigned long *objsize)
|
||||
int hdrlen;
|
||||
void *buf;
|
||||
|
||||
// need to unpack and recompress it by itself
|
||||
/* need to unpack and recompress it by itself */
|
||||
unpacked = read_packed_sha1(sha1, type, &len);
|
||||
|
||||
hdrlen = sprintf(hdr, "%s %lu", type, len) + 1;
|
||||
|
Reference in New Issue
Block a user