diff --git a/include/haproxy/hlua.h b/include/haproxy/hlua.h index 9c9c57a32..3c67ccea8 100644 --- a/include/haproxy/hlua.h +++ b/include/haproxy/hlua.h @@ -60,7 +60,7 @@ int hlua_ref(lua_State *L); void hlua_pushref(lua_State *L, int ref); void hlua_unref(lua_State *L, int ref); struct hlua *hlua_gethlua(lua_State *L); -void hlua_yieldk(lua_State *L, int nresults, int ctx, lua_KFunction k, int timeout, unsigned int flags); +void hlua_yieldk(lua_State *L, int nresults, lua_KContext ctx, lua_KFunction k, int timeout, unsigned int flags); #else /* USE_LUA */ diff --git a/src/hlua.c b/src/hlua.c index ae0d412a4..d228563e8 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -1407,7 +1407,7 @@ static inline void hlua_sendlog(struct proxy *px, int level, const char *msg) * returned with a timeout and permit to set some flags * is a tick value */ -__LJMP void hlua_yieldk(lua_State *L, int nresults, int ctx, +__LJMP void hlua_yieldk(lua_State *L, int nresults, lua_KContext ctx, lua_KFunction k, int timeout, unsigned int flags) { struct hlua *hlua;