]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix open brace '{' following function definition
authorDimitri Papadopoulos <3350651+DimitriPapadopoulos@users.noreply.gitlab.com>
Mon, 21 Jun 2021 17:05:57 +0000 (19:05 +0200)
committerDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Tue, 29 Jun 2021 10:45:55 +0000 (12:45 +0200)
Error reported by checkpatch.pl.

Signed-off-by: Dimitri Papadopoulos <3350651+DimitriPapadopoulos@users.noreply.gitlab.com>
array.c
f5.c
main.c
ppp.c

diff --git a/array.c b/array.c
index 01eeb80eb480a09b68b05c5d8bc57f9aac3b6dde..7734f40f2a4d88f39a1b99771a9ee039ac24ecca 100644 (file)
--- a/array.c
+++ b/array.c
@@ -48,7 +48,8 @@
 
 #include "openconnect-internal.h"
 
-static struct oc_auth_form *plain_auth_form(void) {
+static struct oc_auth_form *plain_auth_form(void)
+{
         struct oc_auth_form *form;
         struct oc_form_opt *opt, *opt2, *opt3;
 
diff --git a/f5.c b/f5.c
index 99eb4ee2e89fac1654954f36a21d6de8dd9b83b3..02ec0fd0c567788c6f528f25511c16ba0a2ad921 100644 (file)
--- a/f5.c
+++ b/f5.c
@@ -37,7 +37,8 @@
 
 #define XCAST(x) ((const xmlChar *)(x))
 
-static struct oc_auth_form *plain_auth_form(void) {
+static struct oc_auth_form *plain_auth_form(void)
+{
        struct oc_auth_form *form;
        struct oc_form_opt *opt, *opt2;
 
diff --git a/main.c b/main.c
index e7e659828eae91cf00453111b5dfb8cc68ce442d..73ecb698d6abee3924e142702c69e8c6c37d5d5f 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1511,7 +1511,8 @@ static void print_connection_stats(void *_vpninfo, const struct oc_stats *stats)
 }
 
 #ifndef _WIN32
-static int background_self(struct openconnect_info *vpninfo, char *pidfile) {
+static int background_self(struct openconnect_info *vpninfo, char *pidfile)
+{
        FILE *fp = NULL;
        int pid;
 
@@ -1550,7 +1551,8 @@ static int background_self(struct openconnect_info *vpninfo, char *pidfile) {
 }
 #endif /* _WIN32 */
 
-static void fully_up_cb(void *_vpninfo) {
+static void fully_up_cb(void *_vpninfo)
+{
        struct openconnect_info *vpninfo = _vpninfo;
 
        print_connection_info(vpninfo);
diff --git a/ppp.c b/ppp.c
index 6c7ef2c205aae41b9b728a8a2200018a541c756c..192c8207f5d402de4ffe1844d7c723e64569e37b 100644 (file)
--- a/ppp.c
+++ b/ppp.c
@@ -190,7 +190,8 @@ static const char *lcp_names[] = {
        "Discard-Request",
 };
 
-inline static const char *proto_names(uint16_t proto) {
+inline static const char *proto_names(uint16_t proto)
+{
        static char unknown[21];
 
        switch (proto) {
@@ -1036,7 +1037,8 @@ static int handle_state_transition(struct openconnect_info *vpninfo, int dtls,
        return ret;
 }
 
-static inline void add_ppp_header(struct pkt *p, struct oc_ppp *ppp, int proto) {
+static inline void add_ppp_header(struct pkt *p, struct oc_ppp *ppp, int proto)
+{
        unsigned char *ph = p->data;
        /* XX: store PPP header, in reverse */
        *--ph = proto & 0xff;