summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-05-03 22:54:33 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2022-05-03 23:00:58 -0400
commit79864c6ec22370ae31d3259a17e0c93db3cdae61 (patch)
tree6de3a54700d84db34eab150740006dd74d359cd2 /apps/gui
parent4dd3c2b33ec3d181f54cc1bcf5b596401a8cfcbb (diff)
downloadrockbox-79864c6ec22370ae31d3259a17e0c93db3cdae61.tar.gz
rockbox-79864c6ec22370ae31d3259a17e0c93db3cdae61.zip
add const to const * strings
I don't think this will amke any difference except maybe for hosted ports Change-Id: I84f898aea92a6963901a6d889dd18b63f24c9a41
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/skin_engine/skin_parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index 1a6861ff16..d89ca8b534 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -601,7 +601,7 @@ static int parse_viewporttextstyle(struct skin_element *element,
601 *line = (struct line_desc)LINE_DESC_DEFINIT; 601 *line = (struct line_desc)LINE_DESC_DEFINIT;
602 unsigned colour; 602 unsigned colour;
603 603
604 static const char *vp_options[] = { "invert", "color", "colour", 604 static const char * const vp_options[] = { "invert", "color", "colour",
605 "clear", "gradient", NULL}; 605 "clear", "gradient", NULL};
606 606
607 int vp_op = string_option(mode, vp_options, false); 607 int vp_op = string_option(mode, vp_options, false);
@@ -1401,7 +1401,7 @@ static int parse_skinvar( struct skin_element *element,
1401 return 0; 1401 return 0;
1402 case SKIN_TOKEN_VAR_SET: 1402 case SKIN_TOKEN_VAR_SET:
1403 { 1403 {
1404 static const char *sv_options[] = {"touch", "set", "inc", "dec", NULL}; 1404 static const char * const sv_options[] = {"touch", "set", "inc", "dec", NULL};
1405 1405
1406 struct skin_var_changer *data = skin_buffer_alloc(sizeof(*data)); 1406 struct skin_var_changer *data = skin_buffer_alloc(sizeof(*data));
1407 if (!data) 1407 if (!data)
@@ -1705,7 +1705,7 @@ static int parse_touchregion(struct skin_element *element,
1705 if (region->action == ACTION_NONE) 1705 if (region->action == ACTION_NONE)
1706 return WPS_ERROR_INVALID_PARAM; 1706 return WPS_ERROR_INVALID_PARAM;
1707 } 1707 }
1708 static const char *pm_options[] = {"allow_while_locked", "reverse_bar", 1708 static const char * const pm_options[] = {"allow_while_locked", "reverse_bar",
1709 "repeat_press", "long_press", NULL}; 1709 "repeat_press", "long_press", NULL};
1710 int pm_op; 1710 int pm_op;
1711 1711