Fix compiling cli.c due to differences with new cli system (closes issue
authorJames Golovich <james@gnuinter.net>
Sat, 13 Oct 2007 08:38:50 +0000 (08:38 +0000)
committerJames Golovich <james@gnuinter.net>
Sat, 13 Oct 2007 08:38:50 +0000 (08:38 +0000)
0010966)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85535 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cli.c

index 3a08eae..7c87e18 100644 (file)
@@ -374,7 +374,7 @@ static char *handle_logger_mute(struct ast_cli_entry *e, int cmd, struct ast_cli
        if (a->argc < 2 || a->argc > 3)
                return CLI_SHOWUSAGE;
 
-       if (a->argc == 3 && !strcasecmp(argv[2], "silent"))
+       if (a->argc == 3 && !strcasecmp(a->argv[2], "silent"))
                ast_console_toggle_mute(a->fd, 1);
        else
                ast_console_toggle_mute(a->fd, 0);