Module: kamailio
Branch: master
Commit: ed0bc07dd66f954757695eebbcd7e49dc5333a9d
URL:
https://github.com/kamailio/kamailio/commit/ed0bc07dd66f954757695eebbcd7e49…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-25T15:35:47+02:00
call_obj: cast to unsigned long, related to commit 2a2780cb6b04
---
Modified: src/modules/call_obj/cobj.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ed0bc07dd66f954757695eebbcd7e49…
Patch:
https://github.com/kamailio/kamailio/commit/ed0bc07dd66f954757695eebbcd7e49…
---
diff --git a/src/modules/call_obj/cobj.c b/src/modules/call_obj/cobj.c
index 1d513ded77..fc839bf3d7 100644
--- a/src/modules/call_obj/cobj.c
+++ b/src/modules/call_obj/cobj.c
@@ -112,15 +112,15 @@ int cobj_init(int start, int end)
size_t total_size = (1 + end - start); /* [start, end] */
size_t array_size = total_size * sizeof(co_object_t);
- LM_DBG("Element size: %lu\n", (long)sizeof(co_object_t));
- LM_DBG("List element size: %lu\n", (long)sizeof(cobj_elem_t));
+ LM_DBG("Element size: %lu\n", (unsigned long)sizeof(co_object_t));
+ LM_DBG("List element size: %lu\n", (unsigned long)sizeof(cobj_elem_t));
co_data->ring = (co_object_t*)shm_malloc(array_size);
if (!co_data->ring) {
LM_ERR("Cannot allocate shm memory for ring in call object\n");
return -1;
}
- LM_DBG("Allocated %lu bytes for the ring\n", (long)array_size);
+ LM_DBG("Allocated %lu bytes for the ring\n", (unsigned long)array_size);
/*
* Initialize lock.