浏览代码

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