From 538dfe7397db62e5c7e8861c272380140969a8b8 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Sun, 21 Oct 2007 00:12:12 -0400 Subject: Improved const correctness for strings Signed-off-by: Shawn O. Pearce --- builtin-reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin-reset.c') 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) { -- cgit v1.2.1