diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/settings.c | 6 | ||||
-rw-r--r-- | src/ui_act.c | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -324,7 +324,7 @@ int main (int argc, char **argv) { size_t i; for (i = 0; i < BAR_KS_COUNT; i++) { if (settings.keys[i] == buf) { - BarKeyShortcutFunc_t idToF[] = {BarUiActHelp, + static const BarKeyShortcutFunc_t idToF[] = {BarUiActHelp, BarUiActLoveSong, BarUiActBanSong, BarUiActAddMusic, BarUiActCreateStation, BarUiActDeleteStation, BarUiActExplain, diff --git a/src/settings.c b/src/settings.c index 8aa764c..d085aff 100644 --- a/src/settings.c +++ b/src/settings.c @@ -89,11 +89,11 @@ void BarSettingsRead (BarSettings_t *settings) { char configfile[1024], key[256], val[256]; FILE *configfd; /* _must_ have same order as in BarKeyShortcutId_t */ - const char defaultKeys[] = {'?', '+', '-', 'a', 'c', 'd', 'e', 'g', + static const char defaultKeys[] = {'?', '+', '-', 'a', 'c', 'd', 'e', 'g', 'h', 'i', 'j', 'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'x', '$', 'b', }; - const char *shortcutFileKeys[] = { + static const char *shortcutFileKeys[] = { "act_help", "act_songlove", "act_songban", "act_stationaddmusic", "act_stationcreate", "act_stationdelete", "act_songexplain", "act_stationaddbygenre", "act_history", "act_songinfo", @@ -162,7 +162,7 @@ void BarSettingsRead (BarSettings_t *settings) { settings->history = atoi (val); } else if (strcmp ("sort", key) == 0) { size_t i; - char *mapping[] = {"name_az", + static const char *mapping[] = {"name_az", "name_za", "quickmix_01_name_az", "quickmix_01_name_za", diff --git a/src/ui_act.c b/src/ui_act.c index 7328e40..d907304 100644 --- a/src/ui_act.c +++ b/src/ui_act.c @@ -71,7 +71,7 @@ static int BarTransformIfShared (PianoHandle_t *ph, WaitressHandle_t *waith, /* print current shortcut configuration */ void BarUiActHelp (BAR_KS_ARGS) { - const char *idToDesc[] = { + static const char *idToDesc[] = { NULL, "love current song", "ban current song", |