summaryrefslogtreecommitdiffstats
path: root/builtin-reset.c
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-10-21 06:12:12 +0200
committerShawn O. Pearce <spearce@spearce.org>2007-10-21 07:43:27 +0200
commit538dfe7397db62e5c7e8861c272380140969a8b8 (patch)
tree70040b3240ed347f8252b8e59aff44ac82e66642 /builtin-reset.c
parentMerge git://git.kernel.org/pub/scm/gitk/gitk (diff)
downloadgit-538dfe7397db62e5c7e8861c272380140969a8b8.tar.xz
git-538dfe7397db62e5c7e8861c272380140969a8b8.zip
Improved const correctness for strings
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'builtin-reset.c')
-rw-r--r--builtin-reset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-reset.c b/builtin-reset.c
index 99d5c082a6..e1dc31e0eb 100644
--- a/builtin-reset.c
+++ b/builtin-reset.c
@@ -169,7 +169,7 @@ static void prepend_reflog_action(const char *action, char *buf, size_t size)
}
enum reset_type { MIXED, SOFT, HARD, NONE };
-static char *reset_type_names[] = { "mixed", "soft", "hard", NULL };
+static const char *reset_type_names[] = { "mixed", "soft", "hard", NULL };
int cmd_reset(int argc, const char **argv, const char *prefix)
{