aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-27 09:01:55 +0100
committerMax Kellermann <max@duempel.org>2009-02-27 09:01:55 +0100
commit75c2029b1c3b59a5922eebc7cf91607758823c45 (patch)
treeb8eb0204dcb4b363aea94e0fcf4593b0610a7172 /src/dbUtils.c
parent5b07cbf0b4428213fee154c2e92b74606abedc2b (diff)
downloadmpd-75c2029b1c3b59a5922eebc7cf91607758823c45.tar.gz
mpd-75c2029b1c3b59a5922eebc7cf91607758823c45.tar.xz
mpd-75c2029b1c3b59a5922eebc7cf91607758823c45.zip
tag: no CamelCase
Renamed numOfItems to num_items.
Diffstat (limited to 'src/dbUtils.c')
-rw-r--r--src/dbUtils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c
index 8b3eee371..dc7f3879c 100644
--- a/src/dbUtils.c
+++ b/src/dbUtils.c
@@ -233,7 +233,6 @@ static void
visitTag(struct client *client, struct strset *set,
struct song *song, enum tag_type tagType)
{
- int i;
struct tag *tag = song->tag;
if (tagType == LOCATE_TAG_FILE_TYPE) {
@@ -244,12 +243,13 @@ visitTag(struct client *client, struct strset *set,
if (!tag)
return;
- for (i = 0; i < tag->numOfItems; i++) {
+ for (unsigned i = 0; i < tag->num_items; i++) {
if (tag->items[i]->type == tagType) {
strset_add(set, tag->items[i]->value);
return;
}
}
+
strset_add(set, "");
}
@@ -294,7 +294,7 @@ int listAllUniqueTags(struct client *client, int type,
while ((value = strset_next(data.set)) != NULL)
client_printf(client, "%s: %s\n",
- mpdTagItemKeys[type],
+ tag_item_names[type],
value);
strset_free(data.set);