Stats: stats_print() returns void
This commit is contained in:
parent
fb0a52a34a
commit
25740d27bf
@ -66,7 +66,8 @@ void stats_update(void)
|
||||
}
|
||||
}
|
||||
|
||||
int stats_print(struct client *client)
|
||||
void
|
||||
stats_print(struct client *client)
|
||||
{
|
||||
client_printf(client,
|
||||
"artists: %u\n"
|
||||
@ -86,6 +87,4 @@ int stats_print(struct client *client)
|
||||
client_printf(client,
|
||||
"db_update: %li\n",
|
||||
(long)db_get_mtime());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -939,7 +939,8 @@ static enum command_return
|
||||
handle_stats(struct client *client,
|
||||
G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[])
|
||||
{
|
||||
return stats_print(client);
|
||||
stats_print(client);
|
||||
return COMMAND_RETURN_OK;
|
||||
}
|
||||
|
||||
static enum command_return
|
||||
|
@ -49,6 +49,7 @@ void stats_global_finish(void);
|
||||
|
||||
void stats_update(void);
|
||||
|
||||
int stats_print(struct client *client);
|
||||
void
|
||||
stats_print(struct client *client);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user