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/locate.c | |
parent | 5b07cbf0b4428213fee154c2e92b74606abedc2b (diff) | |
download | mpd-75c2029b1c3b59a5922eebc7cf91607758823c45.tar.gz mpd-75c2029b1c3b59a5922eebc7cf91607758823c45.tar.xz mpd-75c2029b1c3b59a5922eebc7cf91607758823c45.zip |
tag: no CamelCase
Renamed numOfItems to num_items.
Diffstat (limited to 'src/locate.c')
-rw-r--r-- | src/locate.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/locate.c b/src/locate.c index 55dad41c3..653c53009 100644 --- a/src/locate.c +++ b/src/locate.c @@ -42,7 +42,7 @@ locate_parse_type(const char *str) return LOCATE_TAG_ANY_TYPE; for (i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++) - if (0 == strcasecmp(str, mpdTagItemKeys[i])) + if (0 == strcasecmp(str, tag_item_names[i])) return i; return -1; @@ -165,7 +165,7 @@ locate_tag_search(const struct song *song, enum tag_type type, const char *str) memset(visited_types, 0, sizeof(visited_types)); - for (i = 0; i < song->tag->numOfItems && !ret; i++) { + for (i = 0; i < song->tag->num_items && !ret; i++) { visited_types[song->tag->items[i]->type] = true; if (type != LOCATE_TAG_ANY_TYPE && song->tag->items[i]->type != type) { @@ -205,7 +205,6 @@ locate_song_search(const struct song *song, static bool locate_tag_match(const struct song *song, enum tag_type type, const char *str) { - int i; bool visited_types[TAG_NUM_OF_ITEM_TYPES]; if (type == LOCATE_TAG_FILE_TYPE || type == LOCATE_TAG_ANY_TYPE) { @@ -225,7 +224,7 @@ locate_tag_match(const struct song *song, enum tag_type type, const char *str) memset(visited_types, 0, sizeof(visited_types)); - for (i = 0; i < song->tag->numOfItems; i++) { + for (unsigned i = 0; i < song->tag->num_items; i++) { visited_types[song->tag->items[i]->type] = true; if (type != LOCATE_TAG_ANY_TYPE && song->tag->items[i]->type != type) { |