From 57a4700fb95ba29cb3817b540d3ac4a3dcde2253 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 5 Sep 2013 18:18:49 +0200 Subject: TagNames: make tag_item_names const --- src/tag/TagNames.c | 2 +- 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 -- cgit v1.2.3