aboutsummaryrefslogtreecommitdiffstats
path: root/main/cli.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-22 17:25:05 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-22 17:25:05 +0000
commit3d14da234de3349f9cee9dc44625e5ceee167467 (patch)
tree45c5558995003d5b6df1bcf9fc7cbffcf8b9210a /main/cli.c
parentdad6644e57282cc74f05ede1b6fce35a9299cbc6 (diff)
Make sure we explicitly set the CLI command to not be deprecated, if it isn't.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43492 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/cli.c b/main/cli.c
index 0eb1ef30d..b795e675b 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);