diff options
author | Max Kellermann <max@duempel.org> | 2012-08-28 20:52:07 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-29 17:41:26 +0200 |
commit | 25740d27bfa49fdbc063e1f169fd68993c6428d3 (patch) | |
tree | fbd99dc2e1cb39dd4acefe0d615a89b2b170eb5f | |
parent | fb0a52a34ae0428cf788c16b968cb1f2e6cbb461 (diff) | |
download | mpd-25740d27bfa49fdbc063e1f169fd68993c6428d3.tar.gz mpd-25740d27bfa49fdbc063e1f169fd68993c6428d3.tar.xz mpd-25740d27bfa49fdbc063e1f169fd68993c6428d3.zip |
Stats: stats_print() returns void
-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 |