summaryrefslogtreecommitdiffstats
path: root/MetersPanel.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-20 16:58:37 +0100
committerChristian Göttsche <cgzones@googlemail.com>2020-12-20 16:58:37 +0100
commit7e7a53c415b82cceee6173922987b772b1d51c10 (patch)
tree41623531c123c352d207ac0b0d0727e357054bcc /MetersPanel.c
parent6b100b0cf47dda06d1dc1d38211d910488b5d803 (diff)
Mark event arrays const
Diffstat (limited to 'MetersPanel.c')
-rw-r--r--MetersPanel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MetersPanel.c b/MetersPanel.c
index 7e47ad8b..7e20be0f 100644
--- a/MetersPanel.c
+++ b/MetersPanel.c
@@ -22,7 +22,7 @@ in the source distribution for its full text.
// we call them "Styles".
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)};
+static const 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.
@@ -30,7 +30,7 @@ static int MetersEvents[] = {' ', 13, ERR, KEY_DC, KEY_F(10)};
// considered "Ambiguous characters".
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 const int MetersMovingEvents[] = {' ', 13, KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT, ERR, KEY_DC, KEY_F(10)};
static FunctionBar* Meters_movingBar = NULL;
void MetersPanel_cleanup() {

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