diff options
author | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-06 19:53:08 +0000 |
---|---|---|
committer | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-06 19:53:08 +0000 |
commit | f3e0c4020f365dee40c20da8ed5d80ab686bc72b (patch) | |
tree | 0dd09472a451998c4f9f2d6a6cdeb1be23f3ba70 /main | |
parent | c5f892ebece3563c960d20741f1436aa16f0c09e (diff) |
Fix compiler warning gcc 4.2.4 found
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@228621 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/frame.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/frame.c b/main/frame.c index a7fe2ea90..fb4b4a478 100644 --- a/main/frame.c +++ b/main/frame.c @@ -725,6 +725,7 @@ static char *show_codec_n(struct ast_cli_entry *e, int cmd, struct ast_cli_args { format_t codec; int i, found = 0; + long long type_punned_codec; switch (cmd) { case CLI_INIT: @@ -740,8 +741,10 @@ 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", (long long *) &codec) != 1) + if (sscanf(a->argv[3], "%30Ld", &type_punned_codec) != 1) { return CLI_SHOWUSAGE; + } + codec = type_punned_codec; for (i = 0; i < 63; i++) if (codec & (1LL << i)) { |