[PATCH] remove superflous "const"

Previous thread: What's in git.git by Junio C Hamano on Sunday, May 21, 2006 - 12:01 pm. (1 message)

Next thread: [PATCH] adding NO_INET_NTOP and compat/inet_ntop.c for systems without inet_ntop() (old Cygwin). by iler.ml on Sunday, May 21, 2006 - 2:37 pm. (1 message)
From: Alex Riesen
Date: Sunday, May 21, 2006 - 1:45 pm

---

Someone probably forgot to clean it up.

8eecc10b942df988c2b6ea1141636f9674094b76
 builtin-grep.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

8eecc10b942df988c2b6ea1141636f9674094b76
diff --git a/builtin-grep.c b/builtin-grep.c
index d09ddf0..53de8a8 100644
--- a/builtin-grep.c
+++ b/builtin-grep.c
@@ -518,7 +518,7 @@ static int external_grep(struct grep_opt
 	argc = nr;
 	for (i = 0; i < active_nr; i++) {
 		struct cache_entry *ce = active_cache[i];
-		const char *name;
+		char *name;
 		if (ce_stage(ce) || !S_ISREG(ntohl(ce->ce_mode)))
 			continue;
 		if (!pathspec_matches(paths, ce->name))
-- 
1.3.3.g58b5b

-

Previous thread: What's in git.git by Junio C Hamano on Sunday, May 21, 2006 - 12:01 pm. (1 message)

Next thread: [PATCH] adding NO_INET_NTOP and compat/inet_ntop.c for systems without inet_ntop() (old Cygwin). by iler.ml on Sunday, May 21, 2006 - 2:37 pm. (1 message)