TT#14008 fix 32-bit compiler warnings

Change-Id: Ibf2d631245e2ee67ee2023647ceac349e8c9b605
pull/1396/head
Richard Fuchs 5 years ago
parent 47e9f22442
commit b9eea8c579

@ -441,9 +441,12 @@ static void cli_incoming_list_numsessions(str *instr, struct cli_writer *cw) {
cw->cw_printf(cw, "Current sessions total: %i\n", g_hash_table_size(rtpe_callhash)); cw->cw_printf(cw, "Current sessions total: %i\n", g_hash_table_size(rtpe_callhash));
rwlock_unlock_r(&rtpe_callhash_lock); rwlock_unlock_r(&rtpe_callhash_lock);
cw->cw_printf(cw, "Current transcoded media: "UINT64F"\n", atomic64_get(&rtpe_stats_gauge.transcoded_media)); cw->cw_printf(cw, "Current transcoded media: "UINT64F"\n", atomic64_get(&rtpe_stats_gauge.transcoded_media));
cw->cw_printf(cw, "Current sessions ipv4 only media: %li\n", atomic64_get(&rtpe_stats_gauge.ipv4_sessions)); cw->cw_printf(cw, "Current sessions ipv4 only media: " UINT64F "\n",
cw->cw_printf(cw, "Current sessions ipv6 only media: %li\n", atomic64_get(&rtpe_stats_gauge.ipv6_sessions)); atomic64_get(&rtpe_stats_gauge.ipv4_sessions));
cw->cw_printf(cw, "Current sessions ip mixed media: %li\n", atomic64_get(&rtpe_stats_gauge.mixed_sessions)); cw->cw_printf(cw, "Current sessions ipv6 only media: " UINT64F "\n",
atomic64_get(&rtpe_stats_gauge.ipv6_sessions));
cw->cw_printf(cw, "Current sessions ip mixed media: " UINT64F "\n",
atomic64_get(&rtpe_stats_gauge.mixed_sessions));
} }
static void cli_incoming_list_maxsessions(str *instr, struct cli_writer *cw) { static void cli_incoming_list_maxsessions(str *instr, struct cli_writer *cw) {

@ -464,7 +464,7 @@ static str *chunk_message(struct streambuf *b) {
static void control_stream_readable(struct streambuf_stream *s) { static void control_stream_readable(struct streambuf_stream *s) {
str *data; str *data;
ilog(LOG_DEBUG, "Got %ld bytes from %s", s->inbuf->buf->len, s->addr); ilog(LOG_DEBUG, "Got %zu bytes from %s", s->inbuf->buf->len, s->addr);
while ((data = chunk_message(s->inbuf))) { while ((data = chunk_message(s->inbuf))) {
ilog(LOG_DEBUG, "Got control ng message from %s", s->addr); ilog(LOG_DEBUG, "Got control ng message from %s", s->addr);
control_ng_process(data, &s->sock.remote, s->addr, control_ng_send, &s->sock, s->parent); control_ng_process(data, &s->sock.remote, s->addr, control_ng_send, &s->sock, s->parent);

Loading…
Cancel
Save