summaryrefslogtreecommitdiff
path: root/builtin-grep.c
diff options
context:
space:
mode:
authorAlex Riesen <fork0@t-online.de>2006-05-21 20:45:46 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-21 23:40:45 (GMT)
commitfbd01abf50488d8ed94c36bdd5bfc2a4ddafb8a2 (patch)
tree1774c69745a3218f9dcabf1742b3b35dfb9db2f9 /builtin-grep.c
parent9e848163eda686093f689c25cfa9937ed2a9fdf8 (diff)
downloadgit-fbd01abf50488d8ed94c36bdd5bfc2a4ddafb8a2.zip
git-fbd01abf50488d8ed94c36bdd5bfc2a4ddafb8a2.tar.gz
git-fbd01abf50488d8ed94c36bdd5bfc2a4ddafb8a2.tar.bz2
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 d09ddf0..53de8a8 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))