From 746faef9ffc8c263382356ada9a008564f5288b4 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 18 Sep 2017 10:04:47 +0200 Subject: [PATCH] synproxy plugin: Re-run clang-format. --- src/synproxy.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/synproxy.c b/src/synproxy.c index dcfb0082..6c6b997d 100644 --- a/src/synproxy.c +++ b/src/synproxy.c @@ -33,12 +33,11 @@ static const char *synproxy_stat_path = "/proc/net/stat/synproxy"; static const char *column_names[SYNPROXY_FIELDS] = { - "entries", "syn_received", "invalid", "valid", "retransmission", "reopened" -}; + "entries", "syn_received", "invalid", + "valid", "retransmission", "reopened"}; static const char *column_types[SYNPROXY_FIELDS] = { - "current_connections", "connections", "cookies", "cookies", "cookies", - "connections" -}; + "current_connections", "connections", "cookies", "cookies", "cookies", + "connections"}; static void synproxy_submit(value_t *results) { value_list_t vl = VALUE_LIST_INIT; @@ -53,7 +52,7 @@ static void synproxy_submit(value_t *results) { sstrncpy(vl.type_instance, column_names[n], sizeof(vl.type_instance)); plugin_dispatch_values(&vl); - } + } } static int synproxy_read(void) { @@ -79,8 +78,8 @@ static int synproxy_read(void) { int numfields = strsplit(buf, fields, STATIC_ARRAY_SIZE(fields)); if (numfields != SYNPROXY_FIELDS) { - ERROR("synproxy plugin: unexpected number of columns in %s", - synproxy_stat_path); + ERROR("synproxy plugin: unexpected number of columns in %s", + synproxy_stat_path); status = -1; break; } @@ -105,10 +104,9 @@ static int synproxy_read(void) { synproxy_submit(results); } - return status; + return status; } void module_register(void) { plugin_register_read("synproxy", synproxy_read); } /* void module_register */ - -- 2.11.0