summaryrefslogtreecommitdiffstats
path: root/MetersPanel.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2017-07-26 11:24:51 -0300
committerGitHub <noreply@github.com>2017-07-26 11:24:51 -0300
commitef7817c17a35dd5f8d9eb9ee65539e52d2fdb410 (patch)
treec932359d63a4d2ec16da0b1b9b221d0e81008eb3 /MetersPanel.c
parent33fda932713de9db236d63098d88529f669fc49c (diff)
parentd5faf643742ae047e327d41910232791bc7bca41 (diff)
Merge pull request #656 from rsaxvc/master
more const usage
Diffstat (limited to 'MetersPanel.c')
-rw-r--r--MetersPanel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/MetersPanel.c b/MetersPanel.c
index 22449f3d..47833d38 100644
--- a/MetersPanel.c
+++ b/MetersPanel.c
@@ -33,16 +33,16 @@ struct MetersPanel_ {
// Note: In code the meters are known to have bar/text/graph "Modes", but in UI
// we call them "Styles".
-static const char* MetersFunctions[] = {"Style ", "Move ", " ", "Delete", "Done ", NULL};
-static const char* MetersKeys[] = {"Space", "Enter", " ", "Del", "F10"};
+static const char* const MetersFunctions[] = {"Style ", "Move ", " ", "Delete", "Done ", NULL};
+static const char* const MetersKeys[] = {"Space", "Enter", " ", "Del", "F10"};
static int MetersEvents[] = {' ', 13, ERR, KEY_DC, KEY_F(10)};
// We avoid UTF-8 arrows ← → here as they might display full-width on Chinese
// terminals, breaking our aligning.
// In <http://unicode.org/reports/tr11/>, arrows (U+2019..U+2199) are
// considered "Ambiguous characters".
-static const char* MetersMovingFunctions[] = {"Style ", "Lock ", "Up ", "Down ", "Left ", "Right ", " ", "Delete", "Done ", NULL};
-static const char* MetersMovingKeys[] = {"Space", "Enter", "Up", "Dn", "<-", "->", " ", "Del", "F10"};
+static const char* const MetersMovingFunctions[] = {"Style ", "Lock ", "Up ", "Down ", "Left ", "Right ", " ", "Delete", "Done ", NULL};
+static const char* const MetersMovingKeys[] = {"Space", "Enter", "Up", "Dn", "<-", "->", " ", "Del", "F10"};
static int MetersMovingEvents[] = {' ', 13, KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT, ERR, KEY_DC, KEY_F(10)};
static FunctionBar* Meters_movingBar = NULL;

© 2014-2024 Faster IT GmbH | imprint | privacy policy