Module: kamailio Branch: master Commit: ea141f0a63cf8a09eb11df53929ead49c5a07338 URL: https://github.com/kamailio/kamailio/commit/ea141f0a63cf8a09eb11df53929ead49...
Author: Henning Westerholt hw@skalatan.de Committer: Henning Westerholt hw@skalatan.de Date: 2019-09-25T15:35:47+02:00
jsonrpcs: cast to unsigned long, related to commit e624cbfa4b0df
---
Modified: src/modules/jsonrpcs/jsonrpcs_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/ea141f0a63cf8a09eb11df53929ead49... Patch: https://github.com/kamailio/kamailio/commit/ea141f0a63cf8a09eb11df53929ead49...
---
diff --git a/src/modules/jsonrpcs/jsonrpcs_mod.c b/src/modules/jsonrpcs/jsonrpcs_mod.c index da5f199fb6..d939be5d0f 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", (long)strlen(nj->valuestring), + LM_ERR("id attribute is too long (%lu/%d)\n", (unsigned long)strlen(nj->valuestring), JSONRPC_ID_SIZE); return 0; }