diff options
author | Kaushik BV <kaushikbv@gluster.com> | 2011-04-21 06:55:44 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-22 03:52:24 -0700 |
commit | 49603aec03e98a2a38fad66627593b69b6269cbf (patch) | |
tree | c779d7f8be2e4477d057f17d49713fdb007639f6 /cli/src/cli-cmd-system.c | |
parent | b5848ed21b9e718011a8f3f3870c4ed978ff17a5 (diff) |
cli: changes in struct cli_cmd to disable gluster command at run-time
Signed-off-by: Kaushik BV <kaushikbv@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2744 (make geo-replication package friendly)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2744
Diffstat (limited to 'cli/src/cli-cmd-system.c')
-rw-r--r-- | cli/src/cli-cmd-system.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/src/cli-cmd-system.c b/cli/src/cli-cmd-system.c index 36300248909..2dff572fda7 100644 --- a/cli/src/cli-cmd-system.c +++ b/cli/src/cli-cmd-system.c @@ -221,8 +221,8 @@ cli_cmd_system_register (struct cli_state *state) struct cli_cmd *cmd = NULL; for (cmd = cli_system_cmds; cmd->pattern; cmd++) { - ret = cli_cmd_register (&state->tree, cmd->pattern, cmd->cbk, - cmd->desc); + + ret = cli_cmd_register (&state->tree, cmd); if (ret) goto out; } |