[sr-dev] git:master:2260808c: presence: replaced removed macro SHM_MEM_STR

Daniel-Constantin Mierla miconda at gmail.com
Wed Dec 26 22:08:40 CET 2018


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-12-26T22:07:59+01:00

presence: replaced removed macro SHM_MEM_STR

---

Modified: src/modules/presence/subscribe.c

---

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

---

diff --git a/src/modules/presence/subscribe.c b/src/modules/presence/subscribe.c
index e5d8c62d30..c2f155f74e 100644
--- a/src/modules/presence/subscribe.c
+++ b/src/modules/presence/subscribe.c
@@ -2694,14 +2694,14 @@ int restore_db_subs(void)
 				if(event== NULL)
 				{
 					free_event_params(parsed_event.params.list, PKG_MEM_TYPE);
-					ERR_MEM(SHM_MEM_STR);
+					ERR_MEM("shm");
 				}
 				memset(event, 0, sizeof(pres_ev_t));
 				event->name.s= (char*)shm_malloc(ev_sname.len* sizeof(char));
 				if(event->name.s== NULL)
 				{
 					free_event_params(parsed_event.params.list, PKG_MEM_TYPE);
-					ERR_MEM(SHM_MEM_STR);
+					ERR_MEM("shm");
 				}
 				memcpy(event->name.s,ev_sname.s, ev_sname.len);
 				event->name.len= ev_sname.len;




More information about the sr-dev mailing list