Change C99 comments to old-style C comments
PATCH 1/1 Change C99 comments to old-style C comments
Signed-off-by Tor Arntsen <[email protected]>
---
AIX 5.1 compiler 5.0 chokes on C99 comments.
Diff is against master.
builtin/blame.c | 2 +- builtin/for-each-ref.c | 4 ++-- remote.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
builtin/blame.c +1 -1
@@ -1589,7 +1589,7 @@ static void emit_porcelain(struct scoreboard *sb, struct blame_entry *ent)strcpy (hex,sha1_to_hex (suspect->commit->object.sha1));printf ("%s%c%d %d %d\n" , hex, - ent->guilty ?' ' :'*' ,// purely for debugging + ent->guilty ?' ' :'*' ,/* purely for debugging */ ent->s_lno +1 , ent->lno +1 , ent->num_lines);
builtin/for-each-ref.c +2 -2
@@ -552,10 +552,10 @@ static void grab_values(struct atom_value *val, int deref, struct object *obj, vgrab_person ("committer" , val, deref, obj, buf, sz);break ;case OBJ_TREE : -// grab_tree_values(val, deref, obj, buf, sz); +/* grab_tree_values(val, deref, obj, buf, sz); */ break ;case OBJ_BLOB : -// grab_blob_values(val, deref, obj, buf, sz); +/* grab_blob_values(val, deref, obj, buf, sz); */ break ;default :die ("Eh? Object of type %d?" , obj->type);
remote.c +1 -1
@@ -478,7 +478,7 @@ static void read_config(void)unsigned char sha1[20 ];const char *head_ref;int flag; -if (default_remote_name)// did this already +if (default_remote_name)/* did this already */ return ; default_remote_name =xstrdup ("origin" ); current_branch =NULL ;
Signature · 1 line
1.7.1
Thanks.