diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-10-21 00:12:12 -0400 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-10-21 01:43:27 -0400 |
commit | 538dfe7397db62e5c7e8861c272380140969a8b8 (patch) | |
tree | 70040b3240ed347f8252b8e59aff44ac82e66642 /builtin-reset.c | |
parent | 6e863d6d129a1b6a13c66d0bb03f3d43db6c51fe (diff) | |
download | git-538dfe7397db62e5c7e8861c272380140969a8b8.tar.gz |
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.c | 2 |
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) { |