Re: [ANNOUNCE] GIT 1.0.7

From: B <吉藤英明>
Date: 2006-01-07 19:16:14
In article <7vhd8go71t.fsf@assigned-by-dhcp.cox.net> (at Fri, 06 Jan 2006 23:01:34 -0800), Junio C Hamano <junkio@cox.net> says:

> GIT 1.0.7 is available at http://www.kernel.org/pub/software/scm/git/

Allow compilation w/ gcc 2.95.4.
(Or, it is okay to replace path[] with path[0].)

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>

diff --git a/describe.c b/describe.c
index 84d96b5..3688c4a 100644
--- a/describe.c
+++ b/describe.c
@@ -17,8 +17,8 @@ static int abbrev = DEFAULT_ABBREV;
 static int names = 0, allocs = 0;
 static struct commit_name {
 	const struct commit *commit;
+	char *path;
 	int prio; /* annotated tag = 2, tag = 1, head = 0 */
-	char path[];
 } **name_array = NULL;
 
 static struct commit_name *match(struct commit *cmit)
@@ -43,6 +43,7 @@ static void add_to_known_names(const cha
 	struct commit_name *name = xmalloc(sizeof(struct commit_name) + len);
 
 	name->commit = commit;
+	name->path = sizeof(*name);
 	name->prio = prio; 
 	memcpy(name->path, path, len);
 	idx = names;

-- 
YOSHIFUJI Hideaki @ USAGI Project  <yoshfuji@linux-ipv6.org>
GPG-FP  : 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Jan 07 19:16:11 2006

This archive was generated by hypermail 2.1.8 : 2006-01-07 19:16:19 EST