aboutsummaryrefslogtreecommitdiffstats
path: root/channels/iax2-parser.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-22 02:53:39 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-22 02:53:39 +0000
commitb6878d0ef5f3c67d4533467de0d953a7b2a3874b (patch)
tree8487e7ec9f6e11ebab4c73864a2e48119af83618 /channels/iax2-parser.c
parentd0f0778e1262daf291a4a77e098ee3e9f9d9a3a0 (diff)
Fix compile warnings (bug #389)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1644 f38db490-d61c-443f-a65b-d21fe96a405b
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);