song_print: song_print() returns void

The only "return" statement always returns 0.
This commit is contained in:
Max Kellermann 2010-02-08 10:21:15 +01:00
parent 766b9fd453
commit 8e34c59c82
3 changed files with 12 additions and 10 deletions

View File

@ -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;
}

View File

@ -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);
}

View File

@ -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);