aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue_print.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-24 15:56:34 +0100
committerMax Kellermann <max@duempel.org>2009-01-24 15:56:34 +0100
commite6cb939a82d8559c338ce4cc824c55f4d58499e1 (patch)
treee5f794457752a791bfea3eb7aac301d9eba179d6 /src/queue_print.c
parent6a2118d04c7b73450edfffb6fdc40de1a05bfe94 (diff)
downloadmpd-e6cb939a82d8559c338ce4cc824c55f4d58499e1.tar.gz
mpd-e6cb939a82d8559c338ce4cc824c55f4d58499e1.tar.xz
mpd-e6cb939a82d8559c338ce4cc824c55f4d58499e1.zip
locate: added locate_item_list_casefold()
Merged casefolding code from two locations into this one library function.
Diffstat (limited to '')
-rw-r--r--src/queue_print.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/queue_print.c b/src/queue_print.c
index 54cdc15ae..5479360a2 100644
--- a/src/queue_print.c
+++ b/src/queue_print.c
@@ -85,11 +85,7 @@ queue_search(struct client *client, const struct queue *queue,
{
unsigned i;
struct locate_item_list *new_list =
- locate_item_list_new(criteria->length);
-
- for (i = 0; i < criteria->length; i++)
- new_list->items[i].needle =
- g_utf8_casefold(criteria->items[i].needle, -1);
+ locate_item_list_casefold(criteria);
for (i = 0; i < queue_length(queue); i++) {
const struct song *song = queue_get(queue, i);