projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
336c207
)
Lua plugin: use existing type for functions array
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 09:59:03 +0000
(11:59 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 09:59:03 +0000
(11:59 +0200)
src/lua.c
patch
|
blob
|
history
diff --git
a/src/lua.c
b/src/lua.c
index
b89c824
..
a3f2037
100644
(file)
--- a/
src/lua.c
+++ b/
src/lua.c
@@
-62,11
+62,6
@@
typedef struct {
int callback_id;
} clua_callback_data_t;
-typedef struct {
- const char *name;
- lua_CFunction func;
-} lua_c_function_t;
-
static char base_path[PATH_MAX];
static lua_script_t *scripts;
@@
-367,7
+362,7
@@
static int lua_cb_register_write(lua_State *L) /* {{{ */
return 0;
} /* }}} int lua_cb_register_write */
-static lua
_c_function_t
lua_c_functions[] = {
+static lua
L_Reg
lua_c_functions[] = {
{"log_debug", lua_cb_log_debug},
{"log_error", lua_cb_log_error},
{"log_info", lua_cb_log_info},