[Asterisk-cvs] asterisk/channels chan_iax.c,1.15,1.16 iax2-parser.c,1.12,1.13
markster at lists.digium.com
markster at lists.digium.com
Tue Oct 21 21:27:38 CDT 2003
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv1490/channels
Modified Files:
chan_iax.c iax2-parser.c
Log Message:
Fix compile warnings (bug #389)
Index: chan_iax.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- chan_iax.c 21 Oct 2003 02:57:29 -0000 1.15
+++ chan_iax.c 22 Oct 2003 02:53:39 -0000 1.16
@@ -533,7 +533,7 @@
retries, ntohs(fh->seqno), class, subclass);
fprintf(stderr,
" Timestamp: %05ldms Callno: %5.5d DCall: %5.5d [%s:%d]\n",
- ntohl(fh->ts),
+ (long)ntohl(fh->ts),
(short)(ntohs(fh->callno) & ~AST_FLAG_FULL), (short) ntohs(fh->dcallno),
inet_ntoa(sin->sin_addr), ntohs(sin->sin_port));
}
Index: iax2-parser.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/iax2-parser.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- iax2-parser.c 21 Oct 2003 02:57:29 -0000 1.12
+++ iax2-parser.c 22 Oct 2003 02:53:39 -0000 1.13
@@ -64,7 +64,7 @@
static void dump_int(char *output, int maxlen, void *value, int len)
{
if (len == sizeof(unsigned int))
- snprintf(output, maxlen, "%ld", ntohl(*((unsigned int *)value)));
+ snprintf(output, maxlen, "%ld", (long)ntohl(*((unsigned int *)value)));
else
snprintf(output, maxlen, "Invalid INT");
}
@@ -288,7 +288,7 @@
outputf(tmp);
snprintf(tmp, sizeof(tmp),
" Timestamp: %05ldms SCall: %5.5d DCall: %5.5d [%s:%d]\n",
- ntohl(fh->ts),
+ (long)ntohl(fh->ts),
ntohs(fh->scallno) & ~IAX_FLAG_FULL, ntohs(fh->dcallno) & ~IAX_FLAG_RETRANS,
inet_ntoa(sin->sin_addr), ntohs(sin->sin_port));
outputf(tmp);
More information about the svn-commits
mailing list