diff options
author | Max Kellermann <max@duempel.org> | 2009-03-01 00:58:32 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-01 00:58:32 +0100 |
commit | 80571d1b5a5f35579ad8000add6e3abfc6faadef (patch) | |
tree | a9f812eb239803bd64756072d5b7352becea8772 /src/tag.c | |
parent | 6153c86bc3c2c10055143bd85aa3c1ea0dedd769 (diff) | |
download | mpd-80571d1b5a5f35579ad8000add6e3abfc6faadef.tar.gz mpd-80571d1b5a5f35579ad8000add6e3abfc6faadef.tar.xz mpd-80571d1b5a5f35579ad8000add6e3abfc6faadef.zip |
tag: convert ignore_tag_items to a bool array
Diffstat (limited to 'src/tag.c')
-rw-r--r-- | src/tag.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -62,7 +62,7 @@ const char *tag_item_names[TAG_NUM_OF_ITEM_TYPES] = { [TAG_MUSICBRAINZ_TRACKID] = "MUSICBRAINZ_TRACKID", }; -int8_t ignore_tag_items[TAG_NUM_OF_ITEM_TYPES]; +bool ignore_tag_items[TAG_NUM_OF_ITEM_TYPES]; static size_t items_size(const struct tag *tag) { @@ -80,14 +80,14 @@ void tag_lib_init(void) /* parse the "metadata_to_use" config parameter below */ - memset(ignore_tag_items, 0, TAG_NUM_OF_ITEM_TYPES); - ignore_tag_items[TAG_ITEM_COMMENT] = 1; /* ignore comments by default */ + /* ignore comments by default */ + ignore_tag_items[TAG_ITEM_COMMENT] = true; value = config_get_string(CONF_METADATA_TO_USE, NULL); if (value == NULL) return; - memset(ignore_tag_items, 1, TAG_NUM_OF_ITEM_TYPES); + memset(ignore_tag_items, true, TAG_NUM_OF_ITEM_TYPES); if (0 == strcasecmp(value, "none")) return; @@ -100,7 +100,7 @@ void tag_lib_init(void) *s = '\0'; for (i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++) { if (strcasecmp(c, tag_item_names[i]) == 0) { - ignore_tag_items[i] = 0; + ignore_tag_items[i] = false; break; } } |