Module: sip-router Branch: master Commit: d5a8649a2059466a1a8b9e2adbef139d0300a599 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d5a8649a...
Author: Marius Zbihlei marius.zbihlei@1and1.ro Committer: Marius Zbihlei marius.zbihlei@1and1.ro Date: Fri Sep 14 13:15:47 2012 +0300
core: Fixed inline function declaration for non-gcc linkers
usage of either 'extern inline' or 'static inline' depending on function scope is recommended
---
parser/parse_param.h | 2 +- raw_sock.c | 2 +- sip_msg_clone.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/parser/parse_param.h b/parser/parse_param.h index e0b15fd..db7f401 100644 --- a/parser/parse_param.h +++ b/parser/parse_param.h @@ -150,7 +150,7 @@ typedef union param_hooks { * 0: success, but expect a next paramter * 1: success and exepect no more parameters */ -inline int parse_param(str *_s, pclass_t _c, param_hooks_t *_h, param_t *t); +extern inline int parse_param(str *_s, pclass_t _c, param_hooks_t *_h, param_t *t);
/*! \brief diff --git a/raw_sock.c b/raw_sock.c index b514a87..1d18e5a 100644 --- a/raw_sock.c +++ b/raw_sock.c @@ -391,7 +391,7 @@ error: * in _host_ order. * @return the partial checksum in host order */ -inline unsigned short udpv4_vhdr_sum( struct udphdr* uh, +static inline unsigned short udpv4_vhdr_sum( struct udphdr* uh, struct in_addr* src, struct in_addr* dst, unsigned short length) diff --git a/sip_msg_clone.c b/sip_msg_clone.c index 28933b2..58ce353 100644 --- a/sip_msg_clone.c +++ b/sip_msg_clone.c @@ -150,7 +150,7 @@ do { \
-inline struct via_body* via_body_cloner( char* new_buf, +static inline struct via_body* via_body_cloner( char* new_buf, char *org_buf, struct via_body *param_org_via, char **p) { struct via_body *new_via;