diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 14:02:40 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-07 14:02:40 +0200 |
commit | 438b56f0bab3e814185d2f3fa2f03df82829302a (patch) | |
tree | 9904210c41bb2357baeefa7c440f25ce21612b47 /src/command.c | |
parent | 4665f2bf32c59f263d22c2315d60509c9ae8854b (diff) | |
download | mpd-438b56f0bab3e814185d2f3fa2f03df82829302a.tar.gz mpd-438b56f0bab3e814185d2f3fa2f03df82829302a.tar.xz mpd-438b56f0bab3e814185d2f3fa2f03df82829302a.zip |
ls: don't pass "fd" to lsPlaylists(), printRemoteUrlHandlers()
Pass the client struct instead of the raw file descriptor.
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |