Browse Source

TT#14008 fix 32-bit compiler warnings

Change-Id: Ibf2d631245e2ee67ee2023647ceac349e8c9b605
pull/1396/head
Richard Fuchs 4 years ago
parent
commit
b9eea8c579
2 changed files with 7 additions and 4 deletions
  1. +6
    -3
      daemon/cli.c
  2. +1
    -1
      daemon/control_ng.c

+ 6
- 3
daemon/cli.c View File

@ -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 ipv6 only media: %li\n", atomic64_get(&rtpe_stats_gauge.ipv6_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 ipv4 only media: " UINT64F "\n",
atomic64_get(&rtpe_stats_gauge.ipv4_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) {


+ 1
- 1
daemon/control_ng.c View File

@ -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