X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flua.c;h=d10b4ea737417a0f207ad3122a9683438e4c9955;hb=1961988253c1f5b29a52343a34d291929e84fcf1;hp=cf6dadcc28729c82caaa9eaf3f3ae52ad9952e81;hpb=5cd5988ec752f441254fc887117c3d5aa8f8d094;p=collectd.git diff --git a/src/lua.c b/src/lua.c index cf6dadcc..d10b4ea7 100644 --- a/src/lua.c +++ b/src/lua.c @@ -307,7 +307,7 @@ static int lua_cb_register_read(lua_State *L) /* {{{ */ /* name = */ function_name, /* callback = */ clua_read, /* interval = */ 0, - /* user_data = */ &(user_data_t) { + &(user_data_t) { .data = cb, }); @@ -349,7 +349,7 @@ static int lua_cb_register_write(lua_State *L) /* {{{ */ int status = plugin_register_write(/* name = */ function_name, /* callback = */ clua_write, - /* user_data = */ &(user_data_t) { + &(user_data_t) { .data = cb, });