diff options
author | Mark Spencer <markster@digium.com> | 2003-10-22 02:53:39 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-10-22 02:53:39 +0000 |
commit | 524c10a4c545511d51f8d0ba247072fc64e83761 (patch) | |
tree | 8487e7ec9f6e11ebab4c73864a2e48119af83618 /channels/iax2-parser.c | |
parent | 82d87fe9cc4b0be6b1503db6ee8471fd1fb1b526 (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-x | channels/iax2-parser.c | 4 |
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); |