aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:16 +0200
committerEric Wong <normalperson@yhbt.net>2008-08-31 03:49:24 -0700
commitb2de20ad8ebdba6d78c63a32a28340faf51778c1 (patch)
tree5c1a3fafb45c48262c364d5494943cbb1f9d8687 /src/command.c
parente4db015707016978b6a478e06a908fb1a1577601 (diff)
downloadmpd-b2de20ad8ebdba6d78c63a32a28340faf51778c1.tar.gz
mpd-b2de20ad8ebdba6d78c63a32a28340faf51778c1.tar.xz
mpd-b2de20ad8ebdba6d78c63a32a28340faf51778c1.zip
playlist: eliminate unused fd parameters
Again, remove file descriptor parameters, which are not actually used. These functions can also be converted to return void.
Diffstat (limited to '')
-rw-r--r--src/command.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/command.c b/src/command.c
index 27e7f3408..af559bd6b 100644
--- a/src/command.c
+++ b/src/command.c
@@ -269,10 +269,11 @@ static int handlePlayId(int fd, mpd_unused int *permission,
return playPlaylistById(fd, id, 0);
}
-static int handleStop(int fd, mpd_unused int *permission,
+static int handleStop(mpd_unused int fd, mpd_unused int *permission,
mpd_unused int argc, mpd_unused char *argv[])
{
- return stopPlaylist(fd);
+ stopPlaylist();
+ return 0;
}
static int handleCurrentSong(int fd, mpd_unused int *permission,
@@ -442,10 +443,11 @@ static int handleShuffle(int fd, mpd_unused int *permission,
return shufflePlaylist(fd);
}
-static int handleClear(int fd, mpd_unused int *permission,
+static int handleClear(mpd_unused int fd, mpd_unused int *permission,
mpd_unused int argc, mpd_unused char *argv[])
{
- return clearPlaylist(fd);
+ clearPlaylist();
+ return 0;
}
static int handleSave(int fd, mpd_unused int *permission,
@@ -717,16 +719,18 @@ static int handleUpdate(int fd, mpd_unused int *permission,
return updateInit(fd, NULL);
}
-static int handleNext(int fd, mpd_unused int *permission,
+static int handleNext(mpd_unused int fd, mpd_unused int *permission,
mpd_unused int argc, mpd_unused char *argv[])
{
- return nextSongInPlaylist(fd);
+ nextSongInPlaylist();
+ return 0;
}
-static int handlePrevious(int fd, mpd_unused int *permission,
+static int handlePrevious(mpd_unused int fd, mpd_unused int *permission,
mpd_unused int argc, mpd_unused char *argv[])
{
- return previousSongInPlaylist(fd);
+ previousSongInPlaylist();
+ return 0;
}
static int handleListAll(int fd, mpd_unused int *permission,