Skip to content

Commit

Permalink
cdp: remove inline for functions exported via header files
Browse files Browse the repository at this point in the history
- fix clang compile warnings
  • Loading branch information
miconda committed May 5, 2016
1 parent fe2db1b commit 819442a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions modules/cdp/acctstatemachine.c
Expand Up @@ -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);
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/cdp/acctstatemachine.h
Expand Up @@ -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_ */
2 changes: 1 addition & 1 deletion modules/cdp/config.c
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion modules/cdp/config.h
Expand Up @@ -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);
Expand Down

0 comments on commit 819442a

Please sign in to comment.