summaryrefslogtreecommitdiff
path: root/builtin-grep.c
diff options
context:
space:
mode:
authorAlex Riesen <fork0@t-online.de>2006-05-21 22:45:46 +0200
committerJunio C Hamano <junkio@cox.net>2006-05-21 16:40:45 -0700
commitfbd01abf50488d8ed94c36bdd5bfc2a4ddafb8a2 (patch)
tree1774c69745a3218f9dcabf1742b3b35dfb9db2f9 /builtin-grep.c
parent9e848163eda686093f689c25cfa9937ed2a9fdf8 (diff)
downloadgit-fbd01abf50488d8ed94c36bdd5bfc2a4ddafb8a2.tar.gz
remove superflous "const"
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-grep.c')
-rw-r--r--builtin-grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-grep.c b/builtin-grep.c
index d09ddf0485..53de8a8836 100644
--- a/builtin-grep.c
+++ b/builtin-grep.c
@@ -518,7 +518,7 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached)
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))