X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flua.c;h=d91676c9fd765aa8ebf0c044a30431348906f00a;hb=6378ec288f34ff250b2971a1452338a2b34c240a;hp=8cfb70459991317048e6cdeb0b6be27146c95cdf;hpb=358bf39b09f69220fc8e1b6c2fe98e5e185e3364;p=collectd.git diff --git a/src/lua.c b/src/lua.c index 8cfb7045..d91676c9 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 "common.h" -#include "plugin.h" #include "collectd.h" +#include "plugin.h" +#include "utils/common/common.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;