1
0
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:
sven
2008-09-09 13:23:14 +00:00
parent 5e4d342ce7
commit 11d2f1c6f0

View File

@@ -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;
}