diff options
author | Max Kellermann <max@duempel.org> | 2009-02-27 09:01:55 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-27 09:01:55 +0100 |
commit | 75c2029b1c3b59a5922eebc7cf91607758823c45 (patch) | |
tree | b8eb0204dcb4b363aea94e0fcf4593b0610a7172 /src/tag_print.c | |
parent | 5b07cbf0b4428213fee154c2e92b74606abedc2b (diff) |
tag: no CamelCase
Renamed numOfItems to num_items.
Diffstat (limited to 'src/tag_print.c')
-rw-r--r-- | src/tag_print.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tag_print.c b/src/tag_print.c index 0ed10789..678965c1 100644 --- a/src/tag_print.c +++ b/src/tag_print.c @@ -29,20 +29,18 @@ void tag_print_types(struct client *client) for (i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++) { if (ignoreTagItems[i] == 0) client_printf(client, "tagtype: %s\n", - mpdTagItemKeys[i]); + tag_item_names[i]); } } void tag_print(struct client *client, const struct tag *tag) { - int i; - if (tag->time >= 0) client_printf(client, SONG_TIME "%i\n", tag->time); - for (i = 0; i < tag->numOfItems; i++) { + for (unsigned i = 0; i < tag->num_items; i++) { client_printf(client, "%s: %s\n", - mpdTagItemKeys[tag->items[i]->type], + tag_item_names[tag->items[i]->type], tag->items[i]->value); } } |