From 16151032862af8ee70f14eff57162d829d8d75f9 Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Mon, 10 Mar 2014 18:28:02 +0530 Subject: debug/io-stats:fix compile warning Compiler Warning: --------------------------------------------------------- io-stats.c: In function 'io_stats_dump': io-stats.c:950:24: warning: comparison between 'gf1_cli_stats_op' and 'enum gf1_cli_info_op' [-Wenum-compare] if (op == GF_CLI_INFO_ALL || io-stats.c:951:24: warning: comparison between 'gf1_cli_stats_op' and 'enum gf1_cli_info_op' [-Wenum-compare] op == GF_CLI_INFO_CUMULATIVE) ^ --------------------------------------------------------- Fix: Use the appropriate enum in function defintion of io_stats_dump(). Note: Using the same BZ ID as the commit that introduced this argument. Change-Id: I24e1aaf9ab86b4f337e3daa729d561ec208f2a95 BUG: 1030580 Signed-off-by: Ravishankar N Reviewed-on: http://review.gluster.org/7217 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/debug/io-stats/src/io-stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c index fa0dd395c..9e48a7c6e 100644 --- a/xlators/debug/io-stats/src/io-stats.c +++ b/xlators/debug/io-stats/src/io-stats.c @@ -929,7 +929,7 @@ ios_global_stats_clear (struct ios_global_stats *stats, struct timeval *now) int io_stats_dump (xlator_t *this, struct ios_dump_args *args, - gf1_cli_stats_op op, gf_boolean_t is_peek) + gf1_cli_info_op op, gf_boolean_t is_peek) { struct ios_conf *conf = NULL; struct ios_global_stats cumulative = {0, }; -- cgit