X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flua.c;h=f66d852635e6fa9ecb0cdb06b82749795d11f0a3;hb=7c9d772c992647fcba64a96800c146eb9f1647f8;hp=8cfb70459991317048e6cdeb0b6be27146c95cdf;hpb=936d749328d399463f2bbb5ec3d07cd3a271a7c7;p=collectd.git diff --git a/src/lua.c b/src/lua.c index 8cfb7045..f66d8526 100644 --- a/src/lua.c +++ b/src/lua.c @@ -28,27 +28,18 @@ * Ruben Kerkhof **/ -/* defines a macro using "sprintf". Although not used here, - * GCC will complain about the macro definition. */ -#define DONT_POISON_SPRINTF_YET - +#include "collectd.h" #include "common.h" #include "plugin.h" -#include "collectd.h" +#include "utils_lua.h" /* Include the Lua API header files. */ #include #include #include -#include "utils_lua.h" #include -#if COLLECT_DEBUG && __GNUC__ -#undef sprintf -#pragma GCC poison sprintf -#endif - typedef struct lua_script_s { char *script_path; lua_State *lua_state;