mirror of
https://github.com/nmap/nmap.git
synced 2026-01-02 12:59:02 +00:00
replace deprecated use of luaL_openlib with luaL_register
This fixes a build problem when LUA_COMPAT_OPENLIB is not defined
This commit is contained in:
@@ -64,7 +64,7 @@ static const struct luaL_reg bitlib[] = {
|
||||
};
|
||||
|
||||
LUALIB_API int luaopen_bit(lua_State *L) {
|
||||
luaL_openlib(L, BITLIBNAME, bitlib, 0);
|
||||
luaL_register(L, BITLIBNAME, bitlib);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user