From 25740d27bfa49fdbc063e1f169fd68993c6428d3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 28 Aug 2012 20:52:07 +0200 Subject: [PATCH] Stats: stats_print() returns void --- src/Stats.cxx | 5 ++--- src/command.c | 3 ++- 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