Module: kamailio
Branch: master
Commit: d7c00bce2b191b237254939a1b5029abc37a8004
URL:
https://github.com/kamailio/kamailio/commit/d7c00bce2b191b237254939a1b5029a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-04-10T08:32:10+02:00
jsonrpcs: cast to long long int to print value without warning
---
Modified: src/modules/jsonrpcs/jsonrpcs_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d7c00bce2b191b237254939a1b5029a…
Patch:
https://github.com/kamailio/kamailio/commit/d7c00bce2b191b237254939a1b5029a…
---
diff --git a/src/modules/jsonrpcs/jsonrpcs_mod.c b/src/modules/jsonrpcs/jsonrpcs_mod.c
index 5718abcf913..5ccaf0bac52 100644
--- a/src/modules/jsonrpcs/jsonrpcs_mod.c
+++ b/src/modules/jsonrpcs/jsonrpcs_mod.c
@@ -415,7 +415,8 @@ static int jsonrpc_send_mode(jsonrpc_ctx_t* ctx, int mode)
srjson_AddNumberToObject(ctx->jrpl, ctx->jrpl->root, "id",
nj->valuedouble);
if(mode==1) {
- snprintf(_jsonrpcs_stored_id, 62, "%lld", (int64_t)nj->valuedouble);
+ snprintf(_jsonrpcs_stored_id, 62, "%lld",
+ (long long int)nj->valuedouble);
}
}
}