summaryrefslogtreecommitdiff
path: root/mktag.c
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2006-07-10 06:57:51 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-10 07:47:13 (GMT)
commita9486b02ec7e03d17317fe538b0d06ca04379f23 (patch)
treeb5b4ac5d1caba95de4f2571b46ac600f43b48fce /mktag.c
parent82e5a82fd73edb80a841f5fab1660e14b9b8f3ad (diff)
downloadgit-a9486b02ec7e03d17317fe538b0d06ca04379f23.zip
git-a9486b02ec7e03d17317fe538b0d06ca04379f23.tar.gz
git-a9486b02ec7e03d17317fe538b0d06ca04379f23.tar.bz2
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 'mktag.c')
-rw-r--r--mktag.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mktag.c b/mktag.c
index f0fe528..27f4c4f 100644
--- a/mktag.c
+++ b/mktag.c
@@ -17,7 +17,7 @@
* in that size, you're doing something wrong.
*/
-// Some random size
+/* Some random size */
#define MAXSIZE (8192)
/*
@@ -123,7 +123,8 @@ int main(int argc, char **argv)
die("could not read from stdin");
}
- // Verify it for some basic sanity: it needs to start with "object <sha1>\ntype\ntagger "
+ /* Verify it for some basic sanity: it needs to start with
+ "object <sha1>\ntype\ntagger " */
if (verify_tag(buffer, size) < 0)
die("invalid tag signature file");