aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:39:19 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 13:39:19 +0200
commit20feb0cbbab3c1516f0309a87c3d27f9801c7938 (patch)
tree8dbfb88a60c022d877edc1f2e677e7a147f4fa30 /src/command.c
parente1bf96672e8ef46b4ed20eba2c91efa048c4789c (diff)
downloadmpd-20feb0cbbab3c1516f0309a87c3d27f9801c7938.tar.gz
mpd-20feb0cbbab3c1516f0309a87c3d27f9801c7938.tar.xz
mpd-20feb0cbbab3c1516f0309a87c3d27f9801c7938.zip
playlist: showPlaylist() and shufflePlaylist() cannot fail
Make them both return void.
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index 63ff03e96..9015a3881 100644
--- a/src/command.c
+++ b/src/command.c
@@ -437,13 +437,15 @@ static int handleDeleteId(int fd, mpd_unused int *permission,
static int handlePlaylist(int fd, mpd_unused int *permission,
mpd_unused int argc, mpd_unused char *argv[])
{
- return showPlaylist(fd);
+ showPlaylist(fd);
+ return 0;
}
static int handleShuffle(int fd, mpd_unused int *permission,
mpd_unused int argc, mpd_unused char *argv[])
{
- return shufflePlaylist(fd);
+ shufflePlaylist(fd);
+ return 0;
}
static int handleClear(mpd_unused int fd, mpd_unused int *permission,