stats: don't pass "fd" to printStats()

Pass the client struct instead of the raw file descriptor.
This commit is contained in:
Max Kellermann
2008-09-07 14:02:57 +02:00
parent 93e6d4c3ad
commit a6c5928c75
3 changed files with 21 additions and 12 deletions

View File

@@ -999,7 +999,7 @@ static int handleRandom(struct client *client, mpd_unused int *permission,
static int handleStats(struct client *client, mpd_unused int *permission,
mpd_unused int argc, mpd_unused char *argv[])
{
return printStats(client_get_fd(client));
return printStats(client);
}
static int handleClearError(mpd_unused struct client *client, mpd_unused int *permission,