Parcourir la source

sms: declare inline functions static to work with clang linker

- otherwise it results in no symbol found at module loading time

(cherry picked from commit 8a51aa250c4e22e5933d0ff39a7a4b300007bb72)
(cherry picked from commit 1ce5a1ec17182f774254e6e7f020f9f99d7d8c95)
Daniel-Constantin Mierla il y a 11 ans
Parent
commit
5e99f734dc
3 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 1 1
      modules/sms/libsms_putsms.c
  2. 2 2
      modules/sms/sms_funcs.c
  3. 1 1
      modules/sms/sms_report.c

+ 1 - 1
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;

+ 2 - 2
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;

+ 1 - 1
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;