ls: don't pass "fd" to lsPlaylists(), printRemoteUrlHandlers()

Pass the client struct instead of the raw file descriptor.
This commit is contained in:
Max Kellermann
2008-09-07 14:02:40 +02:00
parent 4665f2bf32
commit 438b56f0ba
3 changed files with 12 additions and 10 deletions

View File

@@ -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;
}