Commit 8e34c59c authored by Max Kellermann's avatar Max Kellermann

song_print: song_print() returns void

The only "return" statement always returns 0.
parent 766b9fd4
......@@ -75,7 +75,7 @@ searchInDirectory(struct song *song, void *_data)
struct search_data *data = _data;
if (locate_song_search(song, data->criteria))
return song_print_info(data->client, song);
song_print_info(data->client, song);
return 0;
}
......@@ -105,7 +105,7 @@ findInDirectory(struct song *song, void *_data)
struct search_data *data = _data;
if (locate_song_match(song, data->criteria))
return song_print_info(data->client, song);
song_print_info(data->client, song);
return 0;
}
......
......@@ -46,7 +46,7 @@ song_print_uri(struct client *client, struct song *song)
}
}
int
void
song_print_info(struct client *client, struct song *song)
{
song_print_uri(client, song);
......@@ -87,18 +87,19 @@ song_print_info(struct client *client, struct song *song)
if (song->tag)
tag_print(client, song->tag);
return 0;
}
static int
song_print_info_x(struct song *song, void *data)
{
struct client *client = data;
return song_print_info(client, song);
song_print_info(client, song);
return 0;
}
int songvec_print(struct client *client, const struct songvec *sv)
void
songvec_print(struct client *client, const struct songvec *sv)
{
return songvec_for_each(sv, song_print_info_x, client);
songvec_for_each(sv, song_print_info_x, client);
}
......@@ -24,10 +24,11 @@ struct client;
struct song;
struct songvec;
int
void
song_print_info(struct client *client, struct song *song);
int songvec_print(struct client *client, const struct songvec *sv);
void
songvec_print(struct client *client, const struct songvec *sv);
void
song_print_uri(struct client *client, struct song *song);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment