Add a couple more casts so that code compiles correctly.
authorMark Michelson <mmichelson@digium.com>
Wed, 4 Nov 2009 16:41:02 +0000 (16:41 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 4 Nov 2009 16:41:02 +0000 (16:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227646 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/frame.c

index a116445..1b68140 100644 (file)
@@ -731,7 +731,7 @@ static char *show_codec_n(struct ast_cli_entry *e, int cmd, struct ast_cli_args
        if (a->argc != 4)
                return CLI_SHOWUSAGE;
 
-       if (sscanf(a->argv[3], "%30Ld", &codec) != 1)
+       if (sscanf(a->argv[3], "%30Ld", (long long *) &codec) != 1)
                return CLI_SHOWUSAGE;
 
        for (i = 0; i < 63; i++)
@@ -741,7 +741,7 @@ static char *show_codec_n(struct ast_cli_entry *e, int cmd, struct ast_cli_args
                }
 
        if (!found)
-               ast_cli(a->fd, "Codec %Ld not found\n", codec);
+               ast_cli(a->fd, "Codec %Ld not found\n", (long long) codec);
 
        return CLI_SUCCESS;
 }