components/rrdtool/patches/rrdtool.bindings.lua.rrdlua.c.patch
changeset 6433 f772255f6791
parent 6432 e821c64a5943
child 6434 9b8c9a1d0ee8
equal deleted inserted replaced
6432:e821c64a5943 6433:f772255f6791
     1 # Copied over from the desktop consolidation, not for upstream
       
     2 
       
     3 --- rrdtool-1.4.9/bindings/lua/rrdlua.c Wed Apr 15 15:28:08 2015 
       
     4 +++ rrdtool-1.4.9/bindings/lua/rrdlua.c Wed Apr 15 15:30:12 2015 
       
     5 @@ -342,7 +342,7 @@
       
     6  
       
     7  /**********************************************************/
       
     8  
       
     9 -static const struct luaL_reg rrd[] = {
       
    10 +static const struct luaL_Reg rrd[] = {
       
    11    {"create", lua_rrd_create},
       
    12    {"dump", lua_rrd_dump},
       
    13    {"fetch", lua_rrd_fetch},
       
    14 @@ -373,7 +373,7 @@ luaopen_rrd (lua_State * L)
       
    15    /* luaL_module is defined in compat-5.1.c */
       
    16    luaL_module (L, "rrd", rrd, 0);
       
    17  #else
       
    18 -  luaL_register (L, "rrd", rrd);
       
    19 +  lua_newlib(L, rrd);
       
    20  #endif
       
    21    set_info (L);
       
    22    return 1;