TagNames: make tag_item_names const

This commit is contained in:
Max Kellermann 2013-09-05 18:18:49 +02:00
parent 2b676dc5fc
commit 57a4700fb9
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
#include "config.h" #include "config.h"
#include "TagType.h" #include "TagType.h"
const char *tag_item_names[TAG_NUM_OF_ITEM_TYPES] = { const char *const tag_item_names[TAG_NUM_OF_ITEM_TYPES] = {
[TAG_ARTIST] = "Artist", [TAG_ARTIST] = "Artist",
[TAG_ARTIST_SORT] = "ArtistSort", [TAG_ARTIST_SORT] = "ArtistSort",
[TAG_ALBUM] = "Album", [TAG_ALBUM] = "Album",

View File

@ -51,6 +51,6 @@ enum tag_type {
* An array of strings, which map the #tag_type to its machine * An array of strings, which map the #tag_type to its machine
* readable name (specific to the MPD protocol). * readable name (specific to the MPD protocol).
*/ */
extern const char *tag_item_names[]; extern const char *const tag_item_names[];
#endif #endif