BUG/MINOR: hlua: hlua_yieldk ctx argument should support pointers

lua_yieldk ctx argument is of type lua_KContext which is typedefed to
intptr_t when available so it can be used to store pointers.

But the wrapper function hlua_yieldk() passes it as a regular it so it
breaks that promise.

Changing hlua_yieldk() prototype so that ctx argument is of type
lua_KContext.

This bug had no functional impact because ctx argument is not being
actively used so far. This may be backported to all stable versions
anyway.

(cherry picked from commit 2e7d3d2e5cd74235cecbb7376d346acdd6babffe)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit bcdf07e833b4c43109b7389f8ec3f8be18792a30)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit da88c55aec31e3835b9a5a103230bd4e79b024c4)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 06f5b53cd2489ca042fc5c83d04b33b991355434)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/src/hlua.c b/src/hlua.c
index 3825572..57b57c9 100644
--- a/src/hlua.c
+++ b/src/hlua.c
@@ -1127,7 +1127,7 @@
 /* This function just ensure that the yield will be always
  * returned with a timeout and permit to set some flags
  */
-__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;