Module: kamailio
Branch: 5.7
Commit: 94717b13f2b75522fcc60180ab192710bdc7ca71
URL:
https://github.com/kamailio/kamailio/commit/94717b13f2b75522fcc60180ab19271…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-05-16T12:48:44+02:00
core: use unsigned long (j) for rpc core.shmmem
- GH #3450
(cherry picked from commit 94dd64a5238b4bf60ca21e09e216c01166f4a93f)
---
Modified: src/core/core_cmd.c
---
Diff:
https://github.com/kamailio/kamailio/commit/94717b13f2b75522fcc60180ab19271…
Patch:
https://github.com/kamailio/kamailio/commit/94717b13f2b75522fcc60180ab19271…
---
diff --git a/src/core/core_cmd.c b/src/core/core_cmd.c
index 302309fc8b0..12f0cbf3fc2 100644
--- a/src/core/core_cmd.c
+++ b/src/core/core_cmd.c
@@ -609,13 +609,13 @@ static void core_shmmem(rpc_t* rpc, void* c)
}
shm_info(&mi);
rpc->add(c, "{", &handle);
- rpc->struct_add(handle, "dddddd",
- "total", (unsigned int)(mi.total_size>>rs),
- "free", (unsigned int)(mi.free_size>>rs),
- "used", (unsigned int)(mi.used_size>>rs),
- "real_used",(unsigned int)(mi.real_used>>rs),
- "max_used", (unsigned int)(mi.max_used>>rs),
- "fragments", (unsigned int)mi.total_frags
+ rpc->struct_add(handle, "jjjjjj",
+ "total", (mi.total_size>>rs),
+ "free", (mi.free_size>>rs),
+ "used", (mi.used_size>>rs),
+ "real_used", (mi.real_used>>rs),
+ "max_used", (mi.max_used>>rs),
+ "fragments", mi.total_frags
);
}