diff options
Diffstat (limited to '')
-rw-r--r-- | src/dbUtils.c | 4 | ||||
-rw-r--r-- | src/song_print.c | 13 | ||||
-rw-r--r-- | src/song_print.h | 5 |
3 files changed, 12 insertions, 10 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c index 858854f28..f950d42cc 100644 --- a/src/dbUtils.c +++ b/src/dbUtils.c @@ -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; } diff --git a/src/song_print.c b/src/song_print.c index 30b868a29..831688483 100644 --- a/src/song_print.c +++ b/src/song_print.c @@ -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); } diff --git a/src/song_print.h b/src/song_print.h index abcab2ac6..cb83f4711 100644 --- a/src/song_print.h +++ b/src/song_print.h @@ -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); |