aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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 '')
-rw-r--r--src/dbUtils.c4
-rw-r--r--src/song_print.c13
-rw-r--r--src/song_print.h5
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);