Module: sip-router Branch: master Commit: da0fe20153eb9fc4b8f79a2f5260cb871bb3fc0d URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=da0fe20153eb9fc4b8f79a2f5260cb871bb3fc0d
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: Fri Apr 11 16:14:06 2014 +0200 cnxcc: inline functions defined in other objects throw warning in llvm - an option would be defining whole function inside the .h file --- modules/cnxcc/cnxcc.c | 6 +++--- modules/cnxcc/cnxcc.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/cnxcc/cnxcc.c b/modules/cnxcc/cnxcc.c index e869af4..cf9619f 100644 --- a/modules/cnxcc/cnxcc.c +++ b/modules/cnxcc/cnxcc.c @@ -28,17 +28,17 @@ #include "cnxcc.h" -inline void get_datetime(str *dest) +void get_datetime(str *dest) { timestamp2isodt(dest, get_current_timestamp()); } -inline unsigned int get_current_timestamp() +unsigned int get_current_timestamp() { return time(NULL); } -inline int timestamp2isodt(str *dest, unsigned int timestamp) +int timestamp2isodt(str *dest, unsigned int timestamp) { time_t tim; struct tm *tmPtr; diff --git a/modules/cnxcc/cnxcc.h b/modules/cnxcc/cnxcc.h index 9454e16..86bcbe3 100644 --- a/modules/cnxcc/cnxcc.h +++ b/modules/cnxcc/cnxcc.h @@ -31,9 +31,9 @@ #define DATETIME_LENGTH DATETIME_SIZE - 1 -inline void get_datetime(str *dest); -inline unsigned int get_current_timestamp(); -inline int timestamp2isodt(str *dest, unsigned int timestamp); +void get_datetime(str *dest); +unsigned int get_current_timestamp(); +int timestamp2isodt(str *dest, unsigned int timestamp); double str2double(str *string); #endif /* _CNXCC_H */ _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
