Skip to content

Commit

Permalink
auth_db: 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 1083f1f commit 5eed243
Show file tree
Hide file tree
Showing 5 changed files with 270 additions and 260 deletions.
12 changes: 6 additions & 6 deletions src/modules/auth_db/api.h
Expand Up @@ -27,16 +27,17 @@
#include "../../core/sr_module.h"
#include "../../core/parser/msg_parser.h"

typedef int (*digest_authenticate_f)(struct sip_msg* msg, str *realm,
str *table, hdr_types_t hftype, str *method);
typedef int (*digest_authenticate_f)(struct sip_msg *msg, str *realm,
str *table, hdr_types_t hftype, str *method);
/**
* @brief AUTH_DB API structure
*/
typedef struct auth_db_api {
typedef struct auth_db_api
{
digest_authenticate_f digest_authenticate;
} auth_db_api_t;

typedef int (*bind_auth_db_f)(auth_db_api_t* api);
typedef int (*bind_auth_db_f)(auth_db_api_t *api);

/**
* @brief Load the SL API
Expand All @@ -50,8 +51,7 @@ static inline int auth_db_load_api(auth_db_api_t *api)
LM_ERR("cannot find bind_auth_db\n");
return -1;
}
if (bindauthdb(api)==-1)
{
if(bindauthdb(api) == -1) {
LM_ERR("cannot bind authdb api\n");
return -1;
}
Expand Down

0 comments on commit 5eed243

Please sign in to comment.