diff options
author | Max Kellermann <max@duempel.org> | 2013-09-05 18:18:49 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-05 18:27:23 +0200 |
commit | 57a4700fb95ba29cb3817b540d3ac4a3dcde2253 (patch) | |
tree | 1d95fcc3ff5ab727740512cb4849297779d1ebdb | |
parent | 2b676dc5fcd7b3a472d4c14f228ea4b7969b4e9e (diff) | |
download | mpd-57a4700fb95ba29cb3817b540d3ac4a3dcde2253.tar.gz mpd-57a4700fb95ba29cb3817b540d3ac4a3dcde2253.tar.xz mpd-57a4700fb95ba29cb3817b540d3ac4a3dcde2253.zip |
TagNames: make tag_item_names const
Diffstat (limited to '')
-rw-r--r-- | src/tag/TagNames.c | 2 | ||||
-rw-r--r-- | src/tag/TagType.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tag/TagNames.c b/src/tag/TagNames.c index 2e318f913..eac6fc59a 100644 --- a/src/tag/TagNames.c +++ b/src/tag/TagNames.c @@ -20,7 +20,7 @@ #include "config.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_SORT] = "ArtistSort", [TAG_ALBUM] = "Album", diff --git a/src/tag/TagType.h b/src/tag/TagType.h index 7a1d351a5..8df595889 100644 --- a/src/tag/TagType.h +++ b/src/tag/TagType.h @@ -51,6 +51,6 @@ enum tag_type { * An array of strings, which map the #tag_type to its machine * readable name (specific to the MPD protocol). */ -extern const char *tag_item_names[]; +extern const char *const tag_item_names[]; #endif |