aboutsummaryrefslogtreecommitdiffstats
path: root/channels
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
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')
-rwxr-xr-xchannels/chan_iax.c2
-rwxr-xr-xchannels/iax2-parser.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_iax.c b/channels/chan_iax.c
index 12cc5b884..b80614ddd 100755
--- a/channels/chan_iax.c
+++ b/channels/chan_iax.c
@@ -533,7 +533,7 @@ static void showframe(struct ast_iax_frame *f, struct ast_iax_full_hdr *fhi, int
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));
}
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);