From: Jason Parker Date: Fri, 22 Sep 2006 17:25:05 +0000 (+0000) Subject: Make sure we explicitly set the CLI command to not be deprecated, if it isn't. X-Git-Tag: 1.4.0-beta3~183 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=408d4b978fab3b134b5defdeed6b7f218583dfcc;p=thirdparty%2Fasterisk.git Make sure we explicitly set the CLI command to not be deprecated, if it isn't. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43492 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cli.c b/main/cli.c index 0eb1ef30df..b795e675bf 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1421,6 +1421,8 @@ static int __ast_cli_register(struct ast_cli_entry *e, struct ast_cli_entry *ed) To show command B, you just need to always use ed->_full_cmd. */ e->_deprecated_by = S_OR(ed->_deprecated_by, ed->_full_cmd); + } else { + e->deprecated = 0; } lf = strlen(fulle);