aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 14:02:52 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 14:02:52 +0200
commit93e6d4c3adff4cfd06af77082793a0ba0fcf5fa5 (patch)
treed85131c327969b910006c326ebb5cbb232e2c0ac /src/command.c
parent709ec6fa39e031953f64bab6c3e84d7688e04632 (diff)
downloadmpd-93e6d4c3adff4cfd06af77082793a0ba0fcf5fa5.tar.gz
mpd-93e6d4c3adff4cfd06af77082793a0ba0fcf5fa5.tar.xz
mpd-93e6d4c3adff4cfd06af77082793a0ba0fcf5fa5.zip
playlist: don't pass "fd" to showPlaylist(), playlistChangesPosId()
Pass the client struct instead of the raw file descriptor.
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index 1502477ab..755d1a586 100644
--- a/src/command.c
+++ b/src/command.c
@@ -525,7 +525,7 @@ static int handleDeleteId(struct client *client, mpd_unused int *permission,
static int handlePlaylist(struct client *client, mpd_unused int *permission,
mpd_unused int argc, mpd_unused char *argv[])
{
- showPlaylist(client_get_fd(client));
+ showPlaylist(client);
return 0;
}
@@ -641,7 +641,7 @@ static int handlePlaylistChangesPosId(struct client *client, mpd_unused int *per
if (check_uint32(client, &version, argv[1], need_positive) < 0)
return -1;
- return playlistChangesPosId(client_get_fd(client), version);
+ return playlistChangesPosId(client, version);
}
static int handlePlaylistInfo(struct client *client, mpd_unused int *permission,