[asterisk-commits] rmudgett: trunk r228621 - /trunk/main/frame.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Nov 6 13:53:12 CST 2009
Author: rmudgett
Date: Fri Nov 6 13:53:08 2009
New Revision: 228621
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=228621
Log:
Fix compiler warning gcc 4.2.4 found
Modified:
trunk/main/frame.c
Modified: trunk/main/frame.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/frame.c?view=diff&rev=228621&r1=228620&r2=228621
==============================================================================
--- trunk/main/frame.c (original)
+++ trunk/main/frame.c Fri Nov 6 13:53:08 2009
@@ -725,6 +725,7 @@
{
format_t codec;
int i, found = 0;
+ long long type_punned_codec;
switch (cmd) {
case CLI_INIT:
@@ -740,8 +741,10 @@
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)) {
More information about the asterisk-commits
mailing list