mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 14:56:46 +02:00
upstream issue: https://github.com/flukso/lua-mosquitto/issues/32 add check that tests that we can load the module and print the version
13 lines
396 B
Diff
13 lines
396 B
Diff
diff --git a/lua-mosquitto.c b/lua-mosquitto.c
|
|
index cb80452..2eaef28 100644
|
|
--- a/lua-mosquitto.c
|
|
+++ b/lua-mosquitto.c
|
|
@@ -539,7 +539,7 @@ static int ctx_threaded_set(lua_State *L)
|
|
static int ctx_option(lua_State *L)
|
|
{
|
|
ctx_t *ctx = ctx_check(L, 1);
|
|
- enum mosq_opt_t option = luaL_checkint(L, 2);
|
|
+ enum mosq_opt_t option = luaL_checkinteger(L, 2);
|
|
int type = lua_type(L, 3);
|
|
int rc;
|
|
|