diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2017-03-27 15:10:26 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2017-03-27 15:15:46 +0300 |
commit | 5159276962e4305db249bbbf5eb589ec59b9e318 (patch) | |
tree | 410750e03bad15e5188c5e3e74655254c8f651b2 | |
parent | 902cb2d1868647b3cbcb1747a4b62c2c7f6d4edf (diff) | |
download | accel-ppp-5159276962e4305db249bbbf5eb589ec59b9e318.tar.gz accel-ppp-5159276962e4305db249bbbf5eb589ec59b9e318.zip |
ipoe: fix lua 5.3 support
-rw-r--r-- | accel-pppd/ctrl/ipoe/lua.c | 2 | ||||
-rw-r--r-- | accel-pppd/ctrl/ipoe/lua_lpack.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/ipoe/lua.c b/accel-pppd/ctrl/ipoe/lua.c index f0785066..da3594b3 100644 --- a/accel-pppd/ctrl/ipoe/lua.c +++ b/accel-pppd/ctrl/ipoe/lua.c @@ -36,7 +36,7 @@ static int packet4_vlan(lua_State *L); int luaopen_lpack(lua_State *L); -static const struct luaL_reg packet4_lib [] = { +static const struct luaL_Reg packet4_lib [] = { {"hdr", packet4_hdr}, {"ifname", packet4_ifname}, {"option", packet4_option}, diff --git a/accel-pppd/ctrl/ipoe/lua_lpack.c b/accel-pppd/ctrl/ipoe/lua_lpack.c index feb0a5a8..74e7384f 100644 --- a/accel-pppd/ctrl/ipoe/lua_lpack.c +++ b/accel-pppd/ctrl/ipoe/lua_lpack.c @@ -252,7 +252,7 @@ static int l_pack(lua_State *L) /** pack(f,...) */ return 1; } -static const luaL_reg R[] = +static const luaL_Reg R[] = { {"pack", l_pack}, {"unpack", l_unpack}, |