From b6878d0ef5f3c67d4533467de0d953a7b2a3874b Mon Sep 17 00:00:00 2001 From: markster Date: Wed, 22 Oct 2003 02:53:39 +0000 Subject: Fix compile warnings (bug #389) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1644 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/iax2-parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'channels/iax2-parser.c') 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); -- cgit v1.2.3