Skip to content

Commit

Permalink
Fix open brace '{' following function definition
Browse files Browse the repository at this point in the history
Error reported by checkpatch.pl.

Signed-off-by: Dimitri Papadopoulos <3350651+DimitriPapadopoulos@users.noreply.gitlab.com>
  • Loading branch information
Dimitri Papadopoulos authored and Dimitri Papadopoulos committed Jun 29, 2021
1 parent 0bef505 commit 91fb117
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion array.c
Expand Up @@ -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;

Expand Down
3 changes: 2 additions & 1 deletion f5.c
Expand Up @@ -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;

Expand Down
6 changes: 4 additions & 2 deletions main.c
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down
6 changes: 4 additions & 2 deletions ppp.c
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 91fb117

Please sign in to comment.