stanza: remove inline keyword from _render_update()

Let compiler make decisions about static funcions. Also we don't need to
support workarounds for specific compilers.
This commit is contained in:
Dmitry Podgorny
2016-09-08 15:04:34 +03:00
parent d8da993a73
commit 151debf7ee

View File

@@ -23,10 +23,6 @@
#include "common.h" #include "common.h"
#include "hash.h" #include "hash.h"
#ifdef _WIN32
#define inline __inline
#endif
/** Create a stanza object. /** Create a stanza object.
* This function allocates and initializes a blank stanza object. * This function allocates and initializes a blank stanza object.
* The stanza will have a reference count of one, so the caller does not * The stanza will have a reference count of one, so the caller does not
@@ -285,7 +281,7 @@ static char *_escape_xml(xmpp_ctx_t * const ctx, char *text)
} }
/* small helper function */ /* small helper function */
static inline void _render_update(int *written, const int length, static void _render_update(int *written, const int length,
const int lastwrite, const int lastwrite,
size_t *left, char **ptr) size_t *left, char **ptr)
{ {