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 39575b9..2077d57 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 f04f887..350c1e3 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 515a601..38f987f 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 3f48a55..a87f3ea 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 0a4ae71..d0c9917 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 bb4a7e4..d75c16e 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>