Merged revisions 43492 via svnmerge from
authorJason Parker <jparker@digium.com>
Fri, 22 Sep 2006 17:26:10 +0000 (17:26 +0000)
committerJason Parker <jparker@digium.com>
Fri, 22 Sep 2006 17:26:10 +0000 (17:26 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43492 | qwell | 2006-09-22 10:25:05 -0700 (Fri, 22 Sep 2006) | 2 lines

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/trunk@43493 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cli.c

index 8d53aaa..698f249 100644 (file)
@@ -1153,6 +1153,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);
                   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);
        }
 
        lf = strlen(fulle);