Skip to content

Commit

Permalink
topos_redis: fix compilation warnings
Browse files Browse the repository at this point in the history
> warning: field precision should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  • Loading branch information
linuxmaniac committed Dec 19, 2018
1 parent 7d9d9fe commit da18d99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/topos_redis/topos_redis_storage.c
Expand Up @@ -654,7 +654,7 @@ int tps_redis_load_invite_branch(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd)
sval.s = NULL;
switch(rrpl->element[i]->type) {
case REDIS_REPLY_STRING:
LM_DBG("r[%d]: s[%.*s]\n", i, rrpl->element[i]->len,
LM_DBG("r[%d]: s[%.*s]\n", i, (int)rrpl->element[i]->len,
rrpl->element[i]->str);
sval.s = rrpl->element[i]->str;
sval.len = rrpl->element[i]->len;
Expand Down Expand Up @@ -802,7 +802,7 @@ int tps_redis_load_branch(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd,
sval.s = NULL;
switch(rrpl->element[i]->type) {
case REDIS_REPLY_STRING:
LM_DBG("r[%d]: s[%.*s]\n", i, rrpl->element[i]->len,
LM_DBG("r[%d]: s[%.*s]\n", i, (int)rrpl->element[i]->len,
rrpl->element[i]->str);
sval.s = rrpl->element[i]->str;
sval.len = rrpl->element[i]->len;
Expand Down Expand Up @@ -1005,7 +1005,7 @@ int tps_redis_load_dialog(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd)
sval.s = NULL;
switch(rrpl->element[i]->type) {
case REDIS_REPLY_STRING:
LM_DBG("r[%d]: s[%.*s]\n", i, rrpl->element[i]->len,
LM_DBG("r[%d]: s[%.*s]\n", i, (int)rrpl->element[i]->len,
rrpl->element[i]->str);
sval.s = rrpl->element[i]->str;
sval.len = rrpl->element[i]->len;
Expand Down

0 comments on commit da18d99

Please sign in to comment.