Skip to content

Commit

Permalink
Fix warnings for 32-bit compiler and misc fixes. (#3896)
Browse files Browse the repository at this point in the history
  • Loading branch information
amubiera authored Mar 25, 2024
1 parent a7c4d83 commit ca4b078
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pjmedia/src/pjmedia-codec/speex_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <pjmedia/errno.h>
#include <pjmedia/endpoint.h>
#include <pjmedia/port.h>
#include <speex/speex.h>
#include <pj/assert.h>
#include <pj/log.h>
#include <pj/pool.h>
Expand All @@ -34,6 +33,7 @@
*/
#if defined(PJMEDIA_HAS_SPEEX_CODEC) && PJMEDIA_HAS_SPEEX_CODEC!=0

#include <speex/speex.h>

#define THIS_FILE "speex_codec.c"

Expand Down
3 changes: 2 additions & 1 deletion pjmedia/src/pjmedia/clock_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ pjmedia_clock_src_get_time_msec( const pjmedia_clock_src *clocksrc )
{
pj_timestamp ts;

pjmedia_clock_src_get_current_timestamp(clocksrc, &ts);
if (pjmedia_clock_src_get_current_timestamp(clocksrc, &ts) != PJ_SUCCESS)
return 0;

#if PJ_HAS_INT64
if (ts.u64 > PJ_UINT64(0x3FFFFFFFFFFFFF))
Expand Down
4 changes: 2 additions & 2 deletions pjnath/src/pjnath/ice_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -1677,8 +1677,8 @@ static pj_bool_t on_check_complete(pj_ice_sess *ice,
}
}

LOG5((ice->obj_name, "Check %ld is successful%s",
GET_CHECK_ID(&ice->clist, check),
LOG5((ice->obj_name, "Check %d is successful%s",
(int)GET_CHECK_ID(&ice->clist, check),
(check->nominated ? " and nominated" : "")));

/* On the first valid pair, we call the callback, if present */
Expand Down
4 changes: 2 additions & 2 deletions pjsip/src/pjsua-lib/pjsua_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,10 +485,10 @@ static pj_status_t logging_on_tx_msg(pjsip_tx_data *tdata)
* transport layer. So don't try to access tp_info when the module
* has lower priority than transport layer.
*/
PJ_LOG(4,(THIS_FILE, "TX %ld bytes %s to %s %s:\n"
PJ_LOG(4,(THIS_FILE, "TX %d bytes %s to %s %s:\n"
"%.*s\n"
"--end msg--",
(tdata->buf.cur - tdata->buf.start),
(int)(tdata->buf.cur - tdata->buf.start),
pjsip_tx_data_get_info(tdata),
tdata->tp_info.transport->type_name,
pj_addr_str_print(&input_str,
Expand Down

0 comments on commit ca4b078

Please sign in to comment.