[sr-dev] git:5.1:17ad3546: cdp: remove inline to functions that break the symbol linking
Daniel-Constantin Mierla
miconda at gmail.com
Sat Dec 9 14:00:55 CET 2017
Module: kamailio
Branch: 5.1
Commit: 17ad3546e38dde4c893fd6e3394615e34c88466e
URL: https://github.com/kamailio/kamailio/commit/17ad3546e38dde4c893fd6e3394615e34c88466e
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-12-09T13:58:17+01:00
cdp: remove inline to functions that break the symbol linking
(cherry picked from commit 76a262f4c39ecb48410f0cb531cf144baf8105e6)
---
Modified: src/modules/cdp/diameter_avp.c
Modified: src/modules/cdp/session.c
---
Diff: https://github.com/kamailio/kamailio/commit/17ad3546e38dde4c893fd6e3394615e34c88466e.diff
Patch: https://github.com/kamailio/kamailio/commit/17ad3546e38dde4c893fd6e3394615e34c88466e.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