diff options
| author | Ravishankar N <ravishankar@redhat.com> | 2014-03-10 18:28:02 +0530 | 
|---|---|---|
| committer | Vijay Bellur <vbellur@redhat.com> | 2014-03-22 05:27:26 -0700 | 
| commit | 16151032862af8ee70f14eff57162d829d8d75f9 (patch) | |
| tree | f75a93cb529868af9e0ad441ca85631a9a11cbe5 /xlators/debug/io-stats/src/io-stats.c | |
| parent | 6d3739292b7b51d2ddbab75b5f884fb38925b943 (diff) | |
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 <ravishankar@redhat.com>
Reviewed-on: http://review.gluster.org/7217
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/debug/io-stats/src/io-stats.c')
| -rw-r--r-- | xlators/debug/io-stats/src/io-stats.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c index fa0dd395ceb..9e48a7c6eca 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, };  | 
