Skip to content

Commit

Permalink
presence_mwi: static declaration for inline function for eating spaces
Browse files Browse the repository at this point in the history
- based on a report by Anthony Messina, GH #502
- get rid of undefined symbols for some compilers

(cherry picked from commit 619988a)
(cherry picked from commit 463f281)
  • Loading branch information
miconda committed Jul 4, 2016
1 parent 9b281ee commit cb89454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/presence_mwi/add_events.c
Expand Up @@ -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++;
Expand Down

0 comments on commit cb89454

Please sign in to comment.