Module: kamailio
Branch: master
Commit: e624cbfa4b0dfc88c95844f056b25fa46bd6b1f1
URL:
https://github.com/kamailio/kamailio/commit/e624cbfa4b0dfc88c95844f056b25fa…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-25T14:20:04+02:00
jsonrpcs: fix compile warning, size_t is unsigned int on 32 bit architectures
---
Modified: src/modules/jsonrpcs/jsonrpcs_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e624cbfa4b0dfc88c95844f056b25fa…
Patch:
https://github.com/kamailio/kamailio/commit/e624cbfa4b0dfc88c95844f056b25fa…
---
diff --git a/src/modules/jsonrpcs/jsonrpcs_mod.c b/src/modules/jsonrpcs/jsonrpcs_mod.c
index 952b4b3081..da5f199fb6 100644
--- a/src/modules/jsonrpcs/jsonrpcs_mod.c
+++ b/src/modules/jsonrpcs/jsonrpcs_mod.c
@@ -1011,7 +1011,7 @@ static struct rpc_delayed_ctx*
jsonrpc_delayed_ctx_new(jsonrpc_ctx_t* ctx)
return 0;
}
if(nj->valuestring!=NULL && strlen(nj->valuestring)>JSONRPC_ID_SIZE-1)
{
- LM_ERR("id attribute is too long (%lu/%d)\n", strlen(nj->valuestring),
+ LM_ERR("id attribute is too long (%lu/%d)\n",
(long)strlen(nj->valuestring),
JSONRPC_ID_SIZE);
return 0;
}