From d9172b961b85fc2e5431b2970521709680166fe1 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 24 Feb 2017 12:41:45 +0100 Subject: dnt: Add a GF_DEFRAG_CMD_NONE to gf_defrag_type Coverity complain about enum mismatch since we assign GF_OP_CMD_NONE to a variable holding gf_defrag_type. Change-Id: I63e71f552b3cc752c26c1b8705420f38908e17e6 BUG: 789278 Signed-off-by: Michael Scherer Reviewed-on: https://review.gluster.org/16756 Smoke: Gluster Build System Reviewed-by: Shyamsundar Ranganathan Tested-by: Michael Scherer NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System --- cli/src/cli-cmd-parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/src/cli-cmd-parser.c') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index d234ad09c4e..e50d9f66f91 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -1845,7 +1845,7 @@ cli_cmd_volume_tier_parse (const char **words, int wordcount, dict_t *dict = NULL; char *volname = NULL; int ret = -1; - int32_t command = GF_OP_CMD_NONE; + int32_t command = GF_DEFRAG_CMD_NONE; int32_t is_force = 0; GF_ASSERT (words); @@ -1926,7 +1926,7 @@ cli_cmd_volume_detach_tier_parse (const char **words, int wordcount, int ret = -1; char *word = NULL; dict_t *dict = NULL; - int32_t command = GF_OP_CMD_NONE; + int32_t command = GF_DEFRAG_CMD_NONE; dict = dict_new (); if (!dict) -- cgit