Module: kamailio
Branch: master
Commit: 89e89e023d923d2dbec694509b9f958bbed6d3ad
URL:
https://github.com/kamailio/kamailio/commit/89e89e023d923d2dbec694509b9f958…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2018-12-20T00:16:25+01:00
cnxcc: fix compilation warnings
warning: field precision should have type
'int', but argument has type 'size_t' (aka 'unsigned long')
[-Wformat]
---
Modified: src/modules/cnxcc/cnxcc_redis.c
---
Diff:
https://github.com/kamailio/kamailio/commit/89e89e023d923d2dbec694509b9f958…
Patch:
https://github.com/kamailio/kamailio/commit/89e89e023d923d2dbec694509b9f958…
---
diff --git a/src/modules/cnxcc/cnxcc_redis.c b/src/modules/cnxcc/cnxcc_redis.c
index 4aad3b48a8..2b9d803ad6 100644
--- a/src/modules/cnxcc/cnxcc_redis.c
+++ b/src/modules/cnxcc/cnxcc_redis.c
@@ -233,7 +233,7 @@ static int __redis_select_db(redisContext *ctxt, int db)
if(!rpl)
LM_ERR("%s\n", ctxt->errstr);
else {
- LM_ERR("%.*s\n", rpl->len, rpl->str);
+ LM_ERR("%.*s\n", (int)rpl->len, rpl->str);
freeReplyObject(rpl);
}
return -1;
@@ -254,7 +254,7 @@ static int __redis_exec(
if(!*rpl)
LM_ERR("%s\n", _data.redis->ctxt->errstr);
else {
- LM_ERR("%.*s\n", (*rpl)->len, (*rpl)->str);
+ LM_ERR("%.*s\n", (int)(*rpl)->len, (*rpl)->str);
freeReplyObject(*rpl);
}
@@ -384,7 +384,7 @@ int redis_get_str(credit_data_t *credit_data, const char
*instruction,
}
if(rpl->len <= 0) {
- LM_ERR("RPL len is equal to %d\n", rpl->len);
+ LM_ERR("RPL len is equal to %d\n", (int)rpl->len);
goto done;
}