浏览代码

cdp: remove inline for functions exported via header files

- fix clang compile warnings
Daniel-Constantin Mierla 9 年之前
父节点
当前提交
819442ab3d
共有 4 个文件被更改,包括 6 次插入6 次删除
  1. 3 3
      modules/cdp/acctstatemachine.c
  2. 1 1
      modules/cdp/acctstatemachine.h
  3. 1 1
      modules/cdp/config.c
  4. 1 1
      modules/cdp/config.h

+ 3 - 3
modules/cdp/acctstatemachine.c

@@ -12,7 +12,7 @@
 /**
  * update Granted Service Unit timers based on CCR
  */
-inline void update_gsu_request_timers(cdp_cc_acc_session_t* session, AAAMessage* msg) {
+void update_gsu_request_timers(cdp_cc_acc_session_t* session, AAAMessage* msg) {
 	AAA_AVP *avp;
 
 	avp = AAAFindMatchingAVP(msg, 0, AVP_Event_Timestamp, 0, 0);
@@ -24,7 +24,7 @@ inline void update_gsu_request_timers(cdp_cc_acc_session_t* session, AAAMessage*
 /**
  * update Granted Service Unit timers based on CCA, for onw we assume on one MSCC per session and only TIME based supported
  */
-inline void update_gsu_response_timers(cdp_cc_acc_session_t* session, AAAMessage* msg) {
+void update_gsu_response_timers(cdp_cc_acc_session_t* session, AAAMessage* msg) {
 	AAA_AVP *avp;
 	AAA_AVP_LIST mscc_avp_list;
 	AAA_AVP_LIST y;
@@ -89,7 +89,7 @@ inline void update_gsu_response_timers(cdp_cc_acc_session_t* session, AAAMessage
  * @param msg  - AAAMessage
  * @returns 0 if msg should be given to the upper layer 1 if not
  */
-inline int cc_acc_client_stateful_sm_process(cdp_session_t* s, int event, AAAMessage* msg)
+int cc_acc_client_stateful_sm_process(cdp_session_t* s, int event, AAAMessage* msg)
 {
 	cdp_cc_acc_session_t* x;
 	int ret = 0;

+ 1 - 1
modules/cdp/acctstatemachine.h

@@ -14,6 +14,6 @@
 
 #define EPOCH_UNIX_TO_EPOCH_NTP 2208988800u // according to http://www.cis.udel.edu/~mills/y2k.html
 
-inline int cc_acc_client_stateful_sm_process(cdp_session_t* cc_acc, int event, AAAMessage* msg);
+int cc_acc_client_stateful_sm_process(cdp_session_t* cc_acc, int event, AAAMessage* msg);
 
 #endif /* ACCTSTATEMACHINE_H_ */

+ 1 - 1
modules/cdp/config.c

@@ -173,7 +173,7 @@ inline void free_dp_config(dp_config *x)
 /**
  * Log the dp_config to output, for debug purposes.
  */
-inline void log_dp_config(dp_config *x)
+void log_dp_config(dp_config *x)
 {
 	int i;
 	LM_DBG("Diameter Peer Config:\n");

+ 1 - 1
modules/cdp/config.h

@@ -139,7 +139,7 @@ routing_entry *new_routing_entry();
 void free_dp_config(dp_config *x);
 void free_routing_realm(routing_realm *rr);
 void free_routing_entry(routing_entry *re);
-inline void log_dp_config(dp_config *x);
+void log_dp_config(dp_config *x);
 
 xmlDocPtr parse_dp_config_file(char* filename);
 xmlDocPtr parse_dp_config_str(str config_str);