diff options
-rw-r--r-- | src/Stats.cxx | 5 | ||||
-rw-r--r-- | src/command.c | 3 | ||||
-rw-r--r-- | src/stats.h | 3 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/Stats.cxx b/src/Stats.cxx index 35c162ef2..d08074a8c 100644 --- a/src/Stats.cxx +++ b/src/Stats.cxx @@ -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; } diff --git a/src/command.c b/src/command.c index 2c76a75ba..9a9cd5b12 100644 --- a/src/command.c +++ b/src/command.c @@ -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 diff --git a/src/stats.h b/src/stats.h index a686477de..adb1c3443 100644 --- a/src/stats.h +++ b/src/stats.h @@ -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 |