Skip to content

Commit

Permalink
sanity: clang-format for coherent indentation and coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxmaniac committed May 18, 2023
1 parent 85c0ced commit b48ac63
Show file tree
Hide file tree
Showing 5 changed files with 359 additions and 349 deletions.
14 changes: 7 additions & 7 deletions src/modules/sanity/api.h
Expand Up @@ -26,16 +26,17 @@

#include "../../core/parser/msg_parser.h"

typedef int (*sanity_check_f)(struct sip_msg* msg, int msg_checks,
int uri_checks);
typedef int (*sanity_check_defaults_f)(struct sip_msg* msg);
typedef int (*sanity_check_f)(
struct sip_msg *msg, int msg_checks, int uri_checks);
typedef int (*sanity_check_defaults_f)(struct sip_msg *msg);

typedef struct sanity_api {
typedef struct sanity_api
{
sanity_check_f check;
sanity_check_defaults_f check_defaults;
} sanity_api_t;

typedef int (*bind_sanity_f)(sanity_api_t* api);
typedef int (*bind_sanity_f)(sanity_api_t *api);

/**
* @brief Load the Sanity API
Expand All @@ -49,8 +50,7 @@ static inline int sanity_load_api(sanity_api_t *api)
LM_ERR("cannot find bind_sanity\n");
return -1;
}
if(bindsanity(api)<0)
{
if(bindsanity(api) < 0) {
LM_ERR("cannot bind sanity api\n");
return -1;
}
Expand Down

0 comments on commit b48ac63

Please sign in to comment.