song_print: song_print() returns void
The only "return" statement always returns 0.
This commit is contained in:
parent
766b9fd453
commit
8e34c59c82
@ -75,7 +75,7 @@ searchInDirectory(struct song *song, void *_data)
|
|||||||
struct search_data *data = _data;
|
struct search_data *data = _data;
|
||||||
|
|
||||||
if (locate_song_search(song, data->criteria))
|
if (locate_song_search(song, data->criteria))
|
||||||
return song_print_info(data->client, song);
|
song_print_info(data->client, song);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -105,7 +105,7 @@ findInDirectory(struct song *song, void *_data)
|
|||||||
struct search_data *data = _data;
|
struct search_data *data = _data;
|
||||||
|
|
||||||
if (locate_song_match(song, data->criteria))
|
if (locate_song_match(song, data->criteria))
|
||||||
return song_print_info(data->client, song);
|
song_print_info(data->client, song);
|
||||||
|
|
||||||
return 0;
|
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_info(struct client *client, struct song *song)
|
||||||
{
|
{
|
||||||
song_print_uri(client, song);
|
song_print_uri(client, song);
|
||||||
@ -87,18 +87,19 @@ song_print_info(struct client *client, struct song *song)
|
|||||||
|
|
||||||
if (song->tag)
|
if (song->tag)
|
||||||
tag_print(client, song->tag);
|
tag_print(client, song->tag);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
song_print_info_x(struct song *song, void *data)
|
song_print_info_x(struct song *song, void *data)
|
||||||
{
|
{
|
||||||
struct client *client = 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 song;
|
||||||
struct songvec;
|
struct songvec;
|
||||||
|
|
||||||
int
|
void
|
||||||
song_print_info(struct client *client, struct song *song);
|
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
|
void
|
||||||
song_print_uri(struct client *client, struct song *song);
|
song_print_uri(struct client *client, struct song *song);
|
||||||
|
Loading…
Reference in New Issue
Block a user