aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xapps/app_cdr.c2
-rwxr-xr-xchannels/chan_iax.c2
-rwxr-xr-xchannels/iax2-parser.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_cdr.c b/apps/app_cdr.c
index 1720261a8..ce04f72f6 100755
--- a/apps/app_cdr.c
+++ b/apps/app_cdr.c
@@ -31,7 +31,7 @@ LOCAL_USER_DECL;
static int nocdr_exec(struct ast_channel *chan, void *data)
{
if (chan->cdr) {
- free(chan->cdr);
+ ast_cdr_free(chan->cdr);
chan->cdr = NULL;
}
return 0;
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);