summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
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/tagcache.c
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/tagcache.c')
-rw-r--r--apps/tagcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index b6d15e7a1f..436d85812b 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -137,7 +137,7 @@ static int tempbuf_handle;
137 (1LU << tag_virt_canonicalartist)) 137 (1LU << tag_virt_canonicalartist))
138 138
139/* String presentation of the tags defined in tagcache.h. Must be in correct order! */ 139/* String presentation of the tags defined in tagcache.h. Must be in correct order! */
140static const char *tags_str[] = { "artist", "album", "genre", "title", 140static const char * const tags_str[] = { "artist", "album", "genre", "title",
141 "filename", "composer", "comment", "albumartist", "grouping", "year", 141 "filename", "composer", "comment", "albumartist", "grouping", "year",
142 "discnumber", "tracknumber", "canonicalartist", "bitrate", "length", 142 "discnumber", "tracknumber", "canonicalartist", "bitrate", "length",
143 "playcount", "rating", "playtime", "lastplayed", "commitid", "mtime", 143 "playcount", "rating", "playtime", "lastplayed", "commitid", "mtime",
@@ -151,7 +151,7 @@ static const char *tags_str[] = { "artist", "album", "genre", "title",
151 "tag_virt_entryage", "tag_virt_autoscore" 151 "tag_virt_entryage", "tag_virt_autoscore"
152}; 152};
153/* more debug strings */ 153/* more debug strings */
154static const char *tag_type_str[] = { 154static const char * const tag_type_str[] = {
155 [clause_none] = "clause_none", [clause_is] = "clause_is", 155 [clause_none] = "clause_none", [clause_is] = "clause_is",
156 [clause_is_not] = "clause_is_not", [clause_gt] = "clause_gt", 156 [clause_is_not] = "clause_is_not", [clause_gt] = "clause_gt",
157 [clause_gteq] = "clause_gteq", [clause_lt] = "clause_lt", 157 [clause_gteq] = "clause_gteq", [clause_lt] = "clause_lt",