[svn-commits] tilghman: branch tilghman/codec_bits3 r226682 - /team/tilghman/codec_bits3/ch...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Oct 31 21:06:26 CDT 2009


Author: tilghman
Date: Sat Oct 31 21:06:23 2009
New Revision: 226682

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=226682
Log:
Clarification required for some compilers

Modified:
    team/tilghman/codec_bits3/channels/iax2-parser.c

Modified: team/tilghman/codec_bits3/channels/iax2-parser.c
URL: http://svnview.digium.com/svn/asterisk/team/tilghman/codec_bits3/channels/iax2-parser.c?view=diff&rev=226682&r1=226681&r2=226682
==============================================================================
--- team/tilghman/codec_bits3/channels/iax2-parser.c (original)
+++ team/tilghman/codec_bits3/channels/iax2-parser.c Sat Oct 31 21:06:23 2009
@@ -787,7 +787,7 @@
 				int version = data[2];
 				if (version == 0) {
 					if (len != (int)sizeof(char) + sizeof(format_t)) {
-						snprintf(tmp, (int)sizeof(tmp), "Expecting capability to be %d bytes long but was %d\n", (int) sizeof(format_t) + sizeof(char), len);
+						snprintf(tmp, (int)sizeof(tmp), "Expecting capability to be %d bytes long but was %d\n", (int) (sizeof(format_t) + sizeof(char)), len);
 						errorf(tmp);
 					} else {
 						ies->capability = (format_t) ntohll(get_unaligned_uint64(data + 3));
@@ -808,7 +808,7 @@
 				int version = data[2];
 				if (version == 0) {
 					if (len != (int)sizeof(char) + sizeof(format_t)) {
-						snprintf(tmp, (int)sizeof(tmp), "Expecting format to be %d bytes long but was %d\n", (int) sizeof(format_t) + sizeof(char), len);
+						snprintf(tmp, (int)sizeof(tmp), "Expecting format to be %d bytes long but was %d\n", (int) (sizeof(format_t) + sizeof(char)), len);
 						errorf(tmp);
 					} else {
 						ies->capability = (format_t) ntohll(get_unaligned_uint64(data + 3));




More information about the svn-commits mailing list