소스 검색

presence_mwi: static declaration for inline function for eating spaces

- based on a report by Anthony Messina, GH #502
- get rid of undefined symbols for some compilers
Daniel-Constantin Mierla 9 년 전
부모
커밋
619988ad6c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      modules/presence_mwi/add_events.c

+ 2 - 2
modules/presence_mwi/add_events.c

@@ -40,14 +40,14 @@
 #include "presence_mwi.h"
 
 /*! \brief utility function that skips spaces and tabs */
-inline char *eat_sp_tab(char *at, char *over)
+static inline char *eat_sp_tab(char *at, char *over)
 {
     while((at < over) && ((*at == ' ') || (*at == '\t'))) at++;
     return at;
 }
 
 /*! \brief utility function that skips printable ascii chars */
-inline char *eat_printable(char *at, char *over)
+static inline char *eat_printable(char *at, char *over)
 {
     while ((at < over) && ((*at == '\t') || ((*at >= 32) && (*at <= 126))))
 	at++;