Module: kamailio
Branch: 4.3
Commit: 463f2817e8685d6d1fbc3b4d6486d0aa05e3a48f
URL:
https://github.com/kamailio/kamailio/commit/463f2817e8685d6d1fbc3b4d6486d0a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-02-07T20:06:56+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
(cherry picked from commit 619988ad6cf54d7e8154a9efb65ce2b9cb475e54)
---
Modified: modules/presence_mwi/add_events.c
---
Diff:
https://github.com/kamailio/kamailio/commit/463f2817e8685d6d1fbc3b4d6486d0a…
Patch:
https://github.com/kamailio/kamailio/commit/463f2817e8685d6d1fbc3b4d6486d0a…
---
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++;