[svn-commits] mmichelson: trunk r227646 - /trunk/main/frame.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Nov 4 10:41:06 CST 2009


Author: mmichelson
Date: Wed Nov  4 10:41:02 2009
New Revision: 227646

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=227646
Log:
Add a couple more casts so that code compiles correctly.


Modified:
    trunk/main/frame.c

Modified: trunk/main/frame.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/frame.c?view=diff&rev=227646&r1=227645&r2=227646
==============================================================================
--- trunk/main/frame.c (original)
+++ trunk/main/frame.c Wed Nov  4 10:41:02 2009
@@ -731,7 +731,7 @@
 	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 @@
 		}
 
 	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;
 }




More information about the svn-commits mailing list