From: Luigi Rizzo Date: Tue, 14 Nov 2006 22:08:20 +0000 (+0000) Subject: add missing casts and remove an unused function. X-Git-Tag: 1.6.0-beta1~3^2~3975 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbcc8f4de2cfd4112cf081cec3c5f9706daa550a;p=thirdparty%2Fasterisk.git add missing casts and remove an unused function. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47630 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cli.c b/main/cli.c index 1e9a5e8036..32bf8884c7 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)