diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 13:57:26 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-07 13:57:26 +0200 |
commit | f59986fad5dd8e00beffcd038112d81963408539 (patch) | |
tree | 4af8b69b754ba0e2600b3d1418b8f8fae7502161 /src/command.c | |
parent | dc8b64fdef1f8bc4499eef3aca17ed336ea3569b (diff) | |
download | mpd-f59986fad5dd8e00beffcd038112d81963408539.tar.gz mpd-f59986fad5dd8e00beffcd038112d81963408539.tar.xz mpd-f59986fad5dd8e00beffcd038112d81963408539.zip |
playlist: pass struct client to loadPlaylist()
The function loadPlaylist() wants to report incremental errors to the
client, for this reason we cannot remove its protocol dependency right
now. Instead, make it use the client struct instead of the raw file
descriptor.
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c index e6fb64a6c..4d703498f 100644 --- a/src/command.c +++ b/src/command.c @@ -575,7 +575,7 @@ static int handleLoad(struct client *client, mpd_unused int *permission, { enum playlist_result result; - result = loadPlaylist(client_get_fd(client), argv[1]); + result = loadPlaylist(client, argv[1]); return print_playlist_result(client, result); } |