Skip to contentSkip to conversation

remove superflous "const"

PATCH New Alex Riesen 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove superflous "const"

---

Someone probably forgot to clean it up.

8eecc10b942df988c2b6ea1141636f9674094b76

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

8eecc10b942df988c2b6ea1141636f9674094b76

builtin-grep.c +1 -1
index d09ddf0..53de8a8 100644
@@ -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))
Signature · 1 line
1.3.3.g58b5b