[sr-dev] git:master:f864b8c2: cdp: remove the SHM_MEM #define, after core change

Henning Westerholt hw at kamailio.org
Wed Dec 26 21:37:37 CET 2018


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

Author: Henning Westerholt <hw at kamailio.org>
Committer: Henning Westerholt <hw at kamailio.org>
Date: 2018-12-26T20:26:30+01:00

cdp: remove the SHM_MEM #define, after core change

---

Modified: src/modules/cdp/globals.c
Modified: src/modules/cdp/sem.h

---

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

---

diff --git a/src/modules/cdp/globals.c b/src/modules/cdp/globals.c
index 5eaf4c2a77..56062e84fa 100644
--- a/src/modules/cdp/globals.c
+++ b/src/modules/cdp/globals.c
@@ -61,7 +61,6 @@
 //	}
 //#endif
 //
-//#ifdef SHM_MEM
 //
 //	if (init_shm_mallocs()==-1)
 //		goto error;
@@ -69,7 +68,6 @@
 //		LM_DBG( "Memory status (shm):\n");
 //		shm_status();
 //	}
-//#endif
 //	return 1;
 //error:
 //	return 0;
diff --git a/src/modules/cdp/sem.h b/src/modules/cdp/sem.h
index 71c7e41686..26057d9232 100644
--- a/src/modules/cdp/sem.h
+++ b/src/modules/cdp/sem.h
@@ -44,8 +44,6 @@
 #ifndef __SEM_H
 #define __SEM_H
 
-#ifdef SHM_MEM
-
 //	#include "../../core/mem/mem.h"
 //	#include "../../core/mem/shm_mem.h"
 
@@ -89,8 +87,4 @@ typedef sem_t gen_sem_t;
 
 #define sem_release(sem) sem_post(sem)
 
-#else
-//#error "locking requires shared memory support"
-#endif
-
 #endif




More information about the sr-dev mailing list