aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:39:19 +0200
committerEric Wong <normalperson@yhbt.net>2008-09-09 00:55:39 -0700
commite29a971c9619a6e988dceb5335645f7ae10a527e (patch)
tree166298cfb6e489e79726be71459bd3293867e1b4 /src/command.c
parent9e53c28046bae4a02387aba5ddaddc74f7bcf246 (diff)
downloadmpd-e29a971c9619a6e988dceb5335645f7ae10a527e.tar.gz
mpd-e29a971c9619a6e988dceb5335645f7ae10a527e.tar.xz
mpd-e29a971c9619a6e988dceb5335645f7ae10a527e.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 77548664f..14932b7d2 100644
--- a/src/command.c
+++ b/src/command.c
@@ -435,13 +435,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,