Run all changed files 68 8.c/1*.h through format.sh web util
[collectd.git] / src / lua.c
index a87f3ea..9a43fc7 100644 (file)
--- a/src/lua.c
+++ b/src/lua.c
  *   Ruben Kerkhof <ruben at rubenkerkhof.com>
  **/
 
+#include "collectd.h"
 #include "plugin.h"
 #include "utils/common/common.h"
 #include "utils_lua.h"
-#include "collectd.h"
 
 /* Include the Lua API header files. */
 #include <lauxlib.h>
@@ -322,14 +322,14 @@ static int lua_cb_register_generic(lua_State *L, int type) /* {{{ */
   pthread_mutex_init(&cb->lock, NULL);
 
   if (PLUGIN_READ == type) {
-    int status = plugin_register_complex_read(/* group = */ "lua",
-                                              /* name      = */ function_name,
-                                              /* callback  = */ clua_read,
-                                              /* interval  = */ 0,
-                                              &(user_data_t){
-                                                  .data = cb,
-                                                  .free_func = lua_cb_free,
-                                              });
+    int status =
+        plugin_register_complex_read(/* group = */ "lua",
+                                     /* name      = */ function_name,
+                                     /* callback  = */ clua_read,
+                                     /* interval  = */ 0,
+                                     &(user_data_t){
+                                         .data = cb, .free_func = lua_cb_free,
+                                     });
 
     if (status != 0)
       return luaL_error(L, "%s", "plugin_register_complex_read failed");
@@ -338,8 +338,7 @@ static int lua_cb_register_generic(lua_State *L, int type) /* {{{ */
     int status = plugin_register_write(/* name = */ function_name,
                                        /* callback  = */ clua_write,
                                        &(user_data_t){
-                                           .data = cb,
-                                           .free_func = lua_cb_free,
+                                           .data = cb, .free_func = lua_cb_free,
                                        });
 
     if (status != 0)