mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 19:16:46 +00:00
Fix dev-mode build on recent gcc
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@430274 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1947,8 +1947,8 @@ static struct ast_json *rtcp_report_to_json(struct stasis_message *msg,
|
|||||||
if (payload->report->type == AST_RTP_RTCP_SR) {
|
if (payload->report->type == AST_RTP_RTCP_SR) {
|
||||||
char sec[32];
|
char sec[32];
|
||||||
char usec[32];
|
char usec[32];
|
||||||
snprintf(sec, sizeof(sec), "%lu", payload->report->sender_information.ntp_timestamp.tv_sec);
|
snprintf(sec, sizeof(sec), "%ld", payload->report->sender_information.ntp_timestamp.tv_sec);
|
||||||
snprintf(usec, sizeof(usec), "%lu", payload->report->sender_information.ntp_timestamp.tv_usec);
|
snprintf(usec, sizeof(usec), "%ld", payload->report->sender_information.ntp_timestamp.tv_usec);
|
||||||
json_rtcp_sender_info = ast_json_pack("{s: s, s: s, s: i, s: i, s: i}",
|
json_rtcp_sender_info = ast_json_pack("{s: s, s: s, s: i, s: i, s: i}",
|
||||||
"ntp_timestamp_sec", sec,
|
"ntp_timestamp_sec", sec,
|
||||||
"ntp_timestamp_usec", usec,
|
"ntp_timestamp_usec", usec,
|
||||||
|
@@ -2687,7 +2687,7 @@ static void send_request_cb(void *token, pjsip_event *e)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ast_log(LOG_ERROR, "Unexpected PJSIP event %d\n", e->body.tsx_state.type);
|
ast_log(LOG_ERROR, "Unexpected PJSIP event %u\n", e->body.tsx_state.type);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -261,7 +261,7 @@ static void qualify_contact_cb(void *token, pjsip_event *e)
|
|||||||
|
|
||||||
switch(e->body.tsx_state.type) {
|
switch(e->body.tsx_state.type) {
|
||||||
default:
|
default:
|
||||||
ast_log(LOG_ERROR, "Unexpected PJSIP event %d\n", e->body.tsx_state.type);
|
ast_log(LOG_ERROR, "Unexpected PJSIP event %u\n", e->body.tsx_state.type);
|
||||||
/* Fall through */
|
/* Fall through */
|
||||||
case PJSIP_EVENT_TRANSPORT_ERROR:
|
case PJSIP_EVENT_TRANSPORT_ERROR:
|
||||||
case PJSIP_EVENT_TIMER:
|
case PJSIP_EVENT_TIMER:
|
||||||
|
Reference in New Issue
Block a user