From 438b56f0bab3e814185d2f3fa2f03df82829302a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 7 Sep 2008 14:02:40 +0200 Subject: ls: don't pass "fd" to lsPlaylists(), printRemoteUrlHandlers() Pass the client struct instead of the raw file descriptor. --- src/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command.c') diff --git a/src/command.c b/src/command.c index 44f561282..1502477ab 100644 --- a/src/command.c +++ b/src/command.c @@ -300,7 +300,7 @@ static void addCommand(const char *name, static int handleUrlHandlers(struct client *client, mpd_unused int *permission, mpd_unused int argc, mpd_unused char *argv[]) { - return printRemoteUrlHandlers(client_get_fd(client)); + return printRemoteUrlHandlers(client); } static int handleTagTypes(struct client *client, mpd_unused int *permission, @@ -601,7 +601,7 @@ static int handleLsInfo(struct client *client, mpd_unused int *permission, } if (isRootDirectory(path)) - return lsPlaylists(client_get_fd(client), path); + return lsPlaylists(client, path); return 0; } -- cgit v1.2.3