aboutsummaryrefslogtreecommitdiffstats
path: root/src/song_print.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-02-08 10:21:15 +0100
committerMax Kellermann <max@duempel.org>2010-02-08 10:21:15 +0100
commit8e34c59c82906529247072704794453bd7bfeab0 (patch)
tree8de0a6f00d407b8f33dcb8c70da393e398affe90 /src/song_print.c
parent766b9fd453af163c41bc77aa08fda0988b024d8e (diff)
downloadmpd-8e34c59c82906529247072704794453bd7bfeab0.tar.gz
mpd-8e34c59c82906529247072704794453bd7bfeab0.tar.xz
mpd-8e34c59c82906529247072704794453bd7bfeab0.zip
song_print: song_print() returns void
The only "return" statement always returns 0.
Diffstat (limited to 'src/song_print.c')
-rw-r--r--src/song_print.c13
1 files changed, 7 insertions, 6 deletions
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);
}