stats: don't pass "fd" to printStats()
Pass the client struct instead of the raw file descriptor.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user