[sr-dev] git:master:41b62951: mem: fix shm_available() def for TLSF

Camille Oudot camille.oudot at orange.com
Wed Apr 22 11:52:33 CEST 2015


Module: kamailio
Branch: master
Commit: 41b629519969bde65f09d0789e811012297c70b7
URL: https://github.com/kamailio/kamailio/commit/41b629519969bde65f09d0789e811012297c70b7

Author: Camille Oudot <camille.oudot at orange.com>
Committer: Camille Oudot <camille.oudot at orange.com>
Date: 2015-04-22T11:48:41+02:00

mem: fix shm_available() def for TLSF

---

Modified: mem/shm_mem.h

---

Diff:  https://github.com/kamailio/kamailio/commit/41b629519969bde65f09d0789e811012297c70b7.diff
Patch: https://github.com/kamailio/kamailio/commit/41b629519969bde65f09d0789e811012297c70b7.patch

---

diff --git a/mem/shm_mem.h b/mem/shm_mem.h
index 6b7ce84..a240cd4 100644
--- a/mem/shm_mem.h
+++ b/mem/shm_mem.h
@@ -154,7 +154,7 @@
 #	define MY_SUMS(...) ((void) 0)
 #	define shm_malloc_init(mem, bytes, type) tlsf_create_with_pool((void*) mem, bytes)
 #	define shm_malloc_destroy(b) do{}while(0)
-#	define shm_available() qm_available(shm_block)
+#	define shm_available() tlsf_available(shm_block)
 #	define shm_malloc_on_fork() do{}while(0)
 #else
 #	include "q_malloc.h"




More information about the sr-dev mailing list