From 75c2029b1c3b59a5922eebc7cf91607758823c45 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 27 Feb 2009 09:01:55 +0100 Subject: tag: no CamelCase Renamed numOfItems to num_items. --- src/tag_print.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/tag_print.c') diff --git a/src/tag_print.c b/src/tag_print.c index 0ed107895..678965c1c 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); } } -- cgit v1.2.3