Commit 25740d27 authored by Max Kellermann's avatar Max Kellermann

Stats: stats_print() returns void

parent fb0a52a3
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment