summaryrefslogtreecommitdiff
path: root/channels/iax2-parser.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-10-22 02:53:39 +0000
committerMark Spencer <markster@digium.com>2003-10-22 02:53:39 +0000
commit524c10a4c545511d51f8d0ba247072fc64e83761 (patch)
tree8487e7ec9f6e11ebab4c73864a2e48119af83618 /channels/iax2-parser.c
parent82d87fe9cc4b0be6b1503db6ee8471fd1fb1b526 (diff)
Fix compile warnings (bug #389)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/iax2-parser.c')
-rwxr-xr-xchannels/iax2-parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c
index 1cfce461a..8ffbd2c69 100755
--- a/channels/iax2-parser.c
+++ b/channels/iax2-parser.c
@@ -64,7 +64,7 @@ static void dump_string(char *output, int maxlen, void *value, int len)
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 @@ snprintf(tmp, sizeof(tmp),
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);