[asterisk-commits] russell: branch group/asterisk-cpp r168536 - /team/group/asterisk-cpp/main/rtp.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jan 12 22:13:57 CST 2009
Author: russell
Date: Mon Jan 12 22:13:57 2009
New Revision: 168536
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=168536
Log:
resolve some errors
Modified:
team/group/asterisk-cpp/main/rtp.c
Modified: team/group/asterisk-cpp/main/rtp.c
URL: http://svn.digium.com/svn-view/asterisk/team/group/asterisk-cpp/main/rtp.c?view=diff&rev=168536&r1=168535&r2=168536
==============================================================================
--- team/group/asterisk-cpp/main/rtp.c (original)
+++ team/group/asterisk-cpp/main/rtp.c Mon Jan 12 22:13:57 2009
@@ -530,9 +530,9 @@
data += sizeof(struct stun_header);
x = ntohs(hdr->msglen); /* len as advertised in the message */
if (stundebug)
- ast_verbose("STUN Packet, msg %s (%04x), length: %d\n", stun_msg2str(ntohs(hdr->msgtype)), ntohs(hdr->msgtype), x);
+ ast_verbose("STUN Packet, msg %s (%04x), length: %d\n", stun_msg2str(ntohs(hdr->msgtype)), ntohs(hdr->msgtype), (int) x);
if (x > len) {
- ast_debug(1, "Scrambled STUN packet length (got %d, expecting %d)\n", x, (int)len);
+ ast_debug(1, "Scrambled STUN packet length (got %d, expecting %d)\n", (int) x, (int)len);
} else
len = x;
memset(&st, 0, sizeof(st));
@@ -545,7 +545,7 @@
/* compute total attribute length */
x = ntohs(attr->len) + sizeof(struct stun_attr);
if (x > len) {
- ast_debug(1, "Inconsistent Attribute (length %d exceeds remaining msg len %d)\n", x, (int)len);
+ ast_debug(1, "Inconsistent Attribute (length %d exceeds remaining msg len %d)\n", (int) x, (int)len);
break;
}
if (stun_cb)
More information about the asterisk-commits
mailing list