summaryrefslogtreecommitdiff
path: root/blame.c
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2006-07-10 02:57:51 -0400
committerJunio C Hamano <junkio@cox.net>2006-07-10 00:47:13 -0700
commita9486b02ec7e03d17317fe538b0d06ca04379f23 (patch)
treeb5b4ac5d1caba95de4f2571b46ac600f43b48fce /blame.c
parent82e5a82fd73edb80a841f5fab1660e14b9b8f3ad (diff)
downloadgit-a9486b02ec7e03d17317fe538b0d06ca04379f23.tar.gz
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>
Diffstat (limited to 'blame.c')
-rw-r--r--blame.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/blame.c b/blame.c
index 0a06026168..b04b8f58aa 100644
--- a/blame.c
+++ b/blame.c
@@ -44,8 +44,8 @@ struct util_info {
};
struct chunk {
- int off1, len1; // ---
- int off2, len2; // +++
+ int off1, len1; /* --- */
+ int off2, len2; /* +++ */
};
struct patch {
@@ -255,7 +255,7 @@ static void print_map(struct commit *cmit, struct commit *other)
}
#endif
-// p is a patch from commit to other.
+/* p is a patch from commit to other. */
static void fill_line_map(struct commit *commit, struct commit *other,
struct patch *p)
{