]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Run all changed files 68 8.c/1 *.h through clang-format agin..
authorZebity Spring <zebity@yahoo.com>
Thu, 16 May 2019 14:26:35 +0000 (00:26 +1000)
committerMatthias Runge <mrunge@redhat.com>
Fri, 19 Jul 2019 10:43:05 +0000 (12:43 +0200)
(cherry picked from commit 626d3ab4309cdb069289354c45ca9e2ba9bc9a2f)

src/amqp.c
src/intel_pmu.c
src/intel_rdt.c
src/lua.c
src/perl.c
src/snmp_agent.c

index 39575b93e68d52e2ba98e25716eac78b57d35e0f..2077d57b3d5e870caa6e089456e646810c1e5ce7 100644 (file)
@@ -320,17 +320,17 @@ static int camqp_setup_queue(camqp_config_t *conf) /* {{{ */
   amqp_queue_declare_ok_t *qd_ret;
   amqp_basic_consume_ok_t *cm_ret;
 
-  qd_ret = amqp_queue_declare(conf->connection,
-                              /* channel     = */ CAMQP_CHANNEL,
-                              /* queue       = */
-                                  (conf->queue != NULL)
-                                  ? amqp_cstring_bytes(conf->queue)
-                                  : AMQP_EMPTY_BYTES,
-                              /* passive     = */ 0,
-                              /* durable     = */ conf->queue_durable,
-                              /* exclusive   = */ 0,
-                              /* auto_delete = */ conf->queue_auto_delete,
-                              /* arguments   = */ AMQP_EMPTY_TABLE);
+  qd_ret =
+      amqp_queue_declare(conf->connection,
+                         /* channel     = */ CAMQP_CHANNEL,
+                         /* queue       = */
+                         (conf->queue != NULL) ? amqp_cstring_bytes(conf->queue)
+                                               : AMQP_EMPTY_BYTES,
+                         /* passive     = */ 0,
+                         /* durable     = */ conf->queue_durable,
+                         /* exclusive   = */ 0,
+                         /* auto_delete = */ conf->queue_auto_delete,
+                         /* arguments   = */ AMQP_EMPTY_TABLE);
   if (qd_ret == NULL) {
     ERROR("amqp plugin: amqp_queue_declare failed.");
     camqp_close_connection(conf);
@@ -360,8 +360,8 @@ static int camqp_setup_queue(camqp_config_t *conf) /* {{{ */
         /* queue       = */ amqp_cstring_bytes(conf->queue),
         /* exchange    = */ amqp_cstring_bytes(conf->exchange),
         /* routing_key = */
-            (conf->routing_key != NULL) ? amqp_cstring_bytes(conf->routing_key)
-                                        : AMQP_EMPTY_BYTES,
+        (conf->routing_key != NULL) ? amqp_cstring_bytes(conf->routing_key)
+                                    : AMQP_EMPTY_BYTES,
         /* arguments   = */ AMQP_EMPTY_TABLE);
     if ((qb_ret == NULL) && camqp_is_error(conf)) {
       char errbuf[1024];
index f04f8871e18e492074b43a9a1b761c1e4d81fa93..350c1e3976bac6ecca99c58378c79ce02978a57c 100644 (file)
@@ -26,8 +26,8 @@
  *   Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
  **/
 
-#include "collectd.h"
 #include "utils/common/common.h"
+#include "collectd.h"
 
 #include "utils/config_cores/config_cores.h"
 
index 515a601e480294dd5651d93ec8ce08c8dd239a61..38f987f6fca9f62ef94af240ebe2d7145e75e75c 100644 (file)
  *   Michał Aleksiński <michalx.aleksinski@intel.com>
  **/
 
-#include "collectd.h"
+#include <pqos.h>
 #include "utils/common/common.h"
 #include "utils/config_cores/config_cores.h"
 #include "utils/proc_pids/proc_pids.h"
-#include <pqos.h>
+#include "collectd.h"
 
 #define RDT_PLUGIN "intel_rdt"
 
index 3f48a55dee5e122e042b38e550d2e26434f828d6..a87f3ea766bbed881f51aeaa05087df85dbf6f2d 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>
index 0a4ae71d13ce0f0643a8e805d67854cb4835684a..d0c991788675477cf7aadd0c9e720af006b56f54 100644 (file)
@@ -33,8 +33,8 @@
 /* do not automatically get the thread specific Perl interpreter */
 #define PERL_NO_GET_CONTEXT
 
-#include "collectd.h"
 #include <stdbool.h>
+#include "collectd.h"
 
 #include <EXTERN.h>
 #include <perl.h>
index bb4a7e4271ed459aa31ced5a4b6ba4378a119a02..d75c16ec670c648e7c0740b2d309e8d64298bbd4 100644 (file)
 
 #include "collectd.h"
 
+#include <regex.h>
 #include "utils/avltree/avltree.h"
 #include "utils/common/common.h"
 #include "utils_cache.h"
 #include "utils_llist.h"
-#include <regex.h>
 
 #include <net-snmp/net-snmp-config.h>