aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:16 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:16 +0200
commitcff923b9d824773ca5446d72f3c6a54245580d87 (patch)
treea359728c9009b3e262a588d4e921a0602596a97b /src/command.c
parent3db333b5a46f8d147043afc4d400d18851d3606d (diff)
downloadmpd-cff923b9d824773ca5446d72f3c6a54245580d87.tar.gz
mpd-cff923b9d824773ca5446d72f3c6a54245580d87.tar.xz
mpd-cff923b9d824773ca5446d72f3c6a54245580d87.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 04220018e..d77b16b42 100644
--- a/src/command.c
+++ b/src/command.c
@@ -268,10 +268,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,
@@ -441,10 +442,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,
@@ -716,16 +718,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,