Stats: stats_print() returns void

This commit is contained in:
Max Kellermann 2012-08-28 20:52:07 +02:00
parent fb0a52a34a
commit 25740d27bf
3 changed files with 6 additions and 5 deletions

View File

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

View File

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

View File

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