From: Dimitri Papadopoulos <3350651+DimitriPapadopoulos@users.noreply.gitlab.com> Date: Mon, 21 Jun 2021 17:05:57 +0000 (+0200) Subject: Fix open brace '{' following function definition X-Git-Tag: v8.20~118^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=91fb11715423975473911210d623f2209f4419c0;p=users%2Fdwmw2%2Fopenconnect.git Fix open brace '{' following function definition Error reported by checkpatch.pl. Signed-off-by: Dimitri Papadopoulos <3350651+DimitriPapadopoulos@users.noreply.gitlab.com> --- diff --git a/array.c b/array.c index 01eeb80e..7734f40f 100644 --- 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 99eb4ee2..02ec0fd0 100644 --- 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 e7e65982..73ecb698 100644 --- 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 6c7ef2c2..192c8207 100644 --- 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;