瀏覽代碼

cdp: remove inline to functions that break the symbol linking

Daniel-Constantin Mierla 7 年之前
父節點
當前提交
76a262f4c3
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/modules/cdp/diameter_avp.c
  2. 1 1
      src/modules/cdp/session.c

+ 1 - 1
src/modules/cdp/diameter_avp.c

@@ -60,7 +60,7 @@
  * @param avp - the actual AVP to set flags
  * @param avp - the actual AVP to set flags
  * \note This function is taken from DISC http://developer.berlios.de/projects/disc/
  * \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) {
 	switch (code) {
 		case   1: /*AVP_User_Name*/
 		case   1: /*AVP_User_Name*/

+ 1 - 1
src/modules/cdp/session.c

@@ -223,7 +223,7 @@ int cdp_sessions_destroy()
  * @param hash_size - value to % with
  * @param hash_size - value to % with
  * @returns the hash % hash_size
  * @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)
 #define h_inc h+=v^(v>>3)
 	char* p;
 	char* p;