Module: sip-router
Branch: master
Commit: 8a51aa250c4e22e5933d0ff39a7a4b300007bb72
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8a51aa2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Sep 30 18:06:36 2014 +0200
sms: declare inline functions static to work with clang linker
- otherwise it results in no symbol found at module loading time
---
modules/sms/libsms_putsms.c | 2 +-
modules/sms/sms_funcs.c | 4 ++--
modules/sms/sms_report.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/sms/libsms_putsms.c b/modules/sms/libsms_putsms.c
index 8223f0d..965e833 100644
--- a/modules/sms/libsms_putsms.c
+++ b/modules/sms/libsms_putsms.c
@@ -155,7 +155,7 @@ int make_pdu(struct sms_msg *msg, struct modem *mdm, char* pdu)
/* search into modem reply for the sms id */
-inline int fetch_sms_id(char *answer)
+static inline int fetch_sms_id(char *answer)
{
char *p;
int id;
diff --git a/modules/sms/sms_funcs.c b/modules/sms/sms_funcs.c
index b99388f..5a2548b 100644
--- a/modules/sms/sms_funcs.c
+++ b/modules/sms/sms_funcs.c
@@ -370,7 +370,7 @@ error:
-inline int send_error(struct sms_msg *sms_messg, char *msg1_s, int msg1_len,
+static inline int send_error(struct sms_msg *sms_messg, char *msg1_s, int msg1_len,
char *msg2_s, int msg2_len)
{
str body;
@@ -398,7 +398,7 @@ error:
-inline unsigned int split_text(str *text, unsigned char *lens,int nice)
+static inline unsigned int split_text(str *text, unsigned char *lens,int nice)
{
int nr_chunks;
int k,k1,len;
diff --git a/modules/sms/sms_report.c b/modules/sms/sms_report.c
index 820fd61..4cf9ca3 100644
--- a/modules/sms/sms_report.c
+++ b/modules/sms/sms_report.c
@@ -112,7 +112,7 @@ void set_gettime_function(void)
-inline void free_report_cell(struct report_cell *cell)
+static inline void free_report_cell(struct report_cell *cell)
{
if (!cell)
return;