Module: kamailio
Branch: master
Commit: 619988ad6cf54d7e8154a9efb65ce2b9cb475e54
URL:
https://github.com/kamailio/kamailio/commit/619988ad6cf54d7e8154a9efb65ce2b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-02-07T19:55:25+01:00
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
---
Modified: modules/presence_mwi/add_events.c
---
Diff:
https://github.com/kamailio/kamailio/commit/619988ad6cf54d7e8154a9efb65ce2b…
Patch:
https://github.com/kamailio/kamailio/commit/619988ad6cf54d7e8154a9efb65ce2b…
---
diff --git a/modules/presence_mwi/add_events.c b/modules/presence_mwi/add_events.c
index c2dda4e..8f58508 100644
--- a/modules/presence_mwi/add_events.c
+++ b/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++;