[sr-dev] git:master:76a262f4: cdp: remove inline to functions that break the symbol linking

Daniel-Constantin Mierla miconda at gmail.com
Sat Dec 9 13:51:44 CET 2017


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-12-09T13:50:34+01:00

cdp: remove inline to functions that break the symbol linking

---

Modified: src/modules/cdp/diameter_avp.c
Modified: src/modules/cdp/session.c

---

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

---

diff --git a/src/modules/cdp/diameter_avp.c b/src/modules/cdp/diameter_avp.c
index c2f17eca9f..ae66ab3e74 100644
--- a/src/modules/cdp/diameter_avp.c
+++ b/src/modules/cdp/diameter_avp.c
@@ -60,7 +60,7 @@
  * @param avp - the actual AVP to set flags
  * \note This function is taken from DISC http://developer.berlios.de/projects/disc/
  */
-inline void set_avp_fields( AAA_AVPCode code, AAA_AVP *avp)
+void set_avp_fields( AAA_AVPCode code, AAA_AVP *avp)
 {
 	switch (code) {
 		case   1: /*AVP_User_Name*/
diff --git a/src/modules/cdp/session.c b/src/modules/cdp/session.c
index 3a609b369c..dd5c026e3e 100644
--- a/src/modules/cdp/session.c
+++ b/src/modules/cdp/session.c
@@ -223,7 +223,7 @@ int cdp_sessions_destroy()
  * @param hash_size - value to % with
  * @returns the hash % hash_size
  */
-inline unsigned int get_str_hash(str x,int hash_size)
+unsigned int get_str_hash(str x,int hash_size)
 {
 #define h_inc h+=v^(v>>3)
 	char* p;




More information about the sr-dev mailing list