diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-14 22:08:20 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-14 22:08:20 +0000 |
commit | 0421f7a06549d817cb90e4aefa46aebc19586b53 (patch) | |
tree | 07b171453b11433ad217653cf3624200c33f965a | |
parent | bab9d7c18e1b63e385203f040b319f12d4df99f2 (diff) |
add missing casts and remove an unused function.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47630 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | main/cli.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/main/cli.c b/main/cli.c index 1e9a5e803..32bf8884c 100644 --- a/main/cli.c +++ b/main/cli.c @@ -193,7 +193,7 @@ static int handle_verbose(int fd, int argc, char *argv[]) case CLI_GENERATE: a = (struct ast_cli_args *)argv[0]; if (a->pos > e->args) - return NULL; + return (int)NULL; return (int)ast_cli_complete(a->word, choices, a->n); } /* all the above return, so we proceed with the handler. @@ -255,7 +255,7 @@ static int handle_set_debug(int fd, int argc, char *argv[]) case CLI_GENERATE: a = (struct ast_cli_args *)argv[0]; if (a->pos > e->args) - return NULL; + return (int)NULL; return (int)ast_cli_complete(a->word, choices, a->n); } /* all the above return, so we proceed with the handler. @@ -305,20 +305,6 @@ done: return RESULT_SUCCESS; } -static int handle_nodebug(int fd, int argc, char *argv[]) -{ - int oldval = option_debug; - if (argc != 4) - return RESULT_SHOWUSAGE; - - option_debug = 0; - debug_filename[0] = '\0'; - - if (oldval > 0) - ast_cli(fd, "Core debug is now OFF\n"); - return RESULT_SUCCESS; -} - static int handle_logger_mute(int fd, int argc, char *argv[]) { if (argc != 2) |