diff --git a/miltertest/miltertest.c b/miltertest/miltertest.c index 04e50c0..c96d9e3 100644 --- a/miltertest/miltertest.c +++ b/miltertest/miltertest.c @@ -4168,7 +4168,7 @@ main(int argc, char **argv) script == NULL ? "(stdin)" : script, NULL)) #else /* LUA_VERSION_NUM == 502 */ switch (lua_load(l, mt_lua_reader, (void *) &io, - script == NULL ? "(stdin)" : script)) + script == NULL ? "(stdin)" : script, NULL)) #endif /* LUA_VERSION_NUM == 502 */ { case 0: diff --git a/opendkim/opendkim-lua.c b/opendkim/opendkim-lua.c index 4720862..e265ba9 100644 --- a/opendkim/opendkim-lua.c +++ b/opendkim/opendkim-lua.c @@ -535,7 +535,7 @@ dkimf_lua_setup_hook(void *ctx, const char *script, size_t scriptlen, # if LUA_VERSION_NUM == 502 switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) # else /* LUA_VERSION_NUM == 502 */ - switch (lua_load(l, dkimf_lua_reader, (void *) &io, name)) + switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) # endif /* LUA_VERSION_NUM == 502 */ { case 0: @@ -564,7 +564,7 @@ dkimf_lua_setup_hook(void *ctx, const char *script, size_t scriptlen, io.lua_io_len = 0; io.lua_io_alloc = 0; - if (lua_dump(l, dkimf_lua_writer, &io) == 0) + if (lua_dump(l, dkimf_lua_writer, &io, NULL) == 0) { *keep = (void *) io.lua_io_script; *funclen = io.lua_io_len; @@ -680,7 +680,7 @@ dkimf_lua_screen_hook(void *ctx, const char *script, size_t scriptlen, # if LUA_VERSION_NUM == 502 switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) # else /* LUA_VERSION_NUM == 502 */ - switch (lua_load(l, dkimf_lua_reader, (void *) &io, name)) + switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) # endif /* LUA_VERSION_NUM == 502 */ { case 0: @@ -709,7 +709,7 @@ dkimf_lua_screen_hook(void *ctx, const char *script, size_t scriptlen, io.lua_io_len = 0; io.lua_io_alloc = 0; - if (lua_dump(l, dkimf_lua_writer, &io) == 0) + if (lua_dump(l, dkimf_lua_writer, &io, NULL) == 0) { *keep = (void *) io.lua_io_script; *funclen = io.lua_io_len; @@ -917,7 +917,7 @@ dkimf_lua_stats_hook(void *ctx, const char *script, size_t scriptlen, # if LUA_VERSION_NUM == 502 switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) # else /* LUA_VERSION_NUM == 502 */ - switch (lua_load(l, dkimf_lua_reader, (void *) &io, name)) + switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) # endif /* LUA_VERSION_NUM == 502 */ { case 0: @@ -946,7 +946,7 @@ dkimf_lua_stats_hook(void *ctx, const char *script, size_t scriptlen, io.lua_io_len = 0; io.lua_io_alloc = 0; - if (lua_dump(l, dkimf_lua_writer, &io) == 0) + if (lua_dump(l, dkimf_lua_writer, &io, NULL) == 0) { *keep = (void *) io.lua_io_script; *funclen = io.lua_io_len; @@ -1154,7 +1154,7 @@ dkimf_lua_final_hook(void *ctx, const char *script, size_t scriptlen, # if LUA_VERSION_NUM == 502 switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) # else /* LUA_VERSION_NUM == 502 */ - switch (lua_load(l, dkimf_lua_reader, (void *) &io, name)) + switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) # endif /* LUA_VERSION_NUM == 502 */ { case 0: @@ -1183,7 +1183,7 @@ dkimf_lua_final_hook(void *ctx, const char *script, size_t scriptlen, io.lua_io_len = 0; io.lua_io_alloc = 0; - if (lua_dump(l, dkimf_lua_writer, &io) == 0) + if (lua_dump(l, dkimf_lua_writer, &io, NULL) == 0) { *keep = (void *) io.lua_io_script; *funclen = io.lua_io_len; @@ -1255,7 +1255,7 @@ dkimf_lua_db_hook(const char *script, size_t scriptlen, const char *query, # if LUA_VERSION_NUM == 502 switch (lua_load(l, dkimf_lua_reader, (void *) &io, script, NULL)) # else /* LUA_VERSION_NUM == 502 */ - switch (lua_load(l, dkimf_lua_reader, (void *) &io, script)) + switch (lua_load(l, dkimf_lua_reader, (void *) &io, script, NULL)) # endif /* LUA_VERSION_NUM == 502 */ { case 0: @@ -1284,7 +1284,7 @@ dkimf_lua_db_hook(const char *script, size_t scriptlen, const char *query, io.lua_io_len = 0; io.lua_io_alloc = 0; - if (lua_dump(l, dkimf_lua_writer, &io) == 0) + if (lua_dump(l, dkimf_lua_writer, &io, NULL) == 0) { *keep = (void *) io.lua_io_script; *funclen = io.lua_io_len;