[sr-dev] [kamailio] cnxcc: define inline functions in cnxcc.h (#453)
Federico Cabiddu
notifications at github.com
Tue Dec 22 13:55:41 CET 2015
On some systems compiling cnxcc we get:
cnxcc.h:36:12: warning: inline function �timestamp2isodt� declared but never defined
inline int timestamp2isodt(str *dest, unsigned int timestamp);
^
cnxcc.h:35:21: warning: inline function �get_current_timestamp� declared but never defined
inline unsigned int get_current_timestamp();
^
cnxcc.h:34:13: warning: inline function �get_datetime� declared but never defined
inline void get_datetime(str *dest);
and then at runtime:
ERROR: <core> [sr_module.c:576]: load_module(): could not open module </usr/lib64/kamailio/modules/cnxcc.so>: /usr/lib64/kamailio/modules/cnxcc.so: undefined symbol: get_current_timestamp
The present patch moves the definition of the inline functions into the .h file.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/453
-- Commit Summary --
* cnxcc: define inline functions in cnxcc.h
-- File Changes --
M modules/cnxcc/cnxcc.c (24)
M modules/cnxcc/cnxcc.h (27)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/453.patch
https://github.com/kamailio/kamailio/pull/453.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151222/38d099ed/attachment.html>
More information about the sr-dev
mailing list