mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +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:
parent
5e4d342ce7
commit
11d2f1c6f0
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue