Skip to content

Commit

Permalink
mtree: 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 cd9f807 commit 777c1cb
Show file tree
Hide file tree
Showing 4 changed files with 575 additions and 747 deletions.
9 changes: 5 additions & 4 deletions src/modules/mtree/api.h
Expand Up @@ -26,13 +26,14 @@

typedef int (*mt_match_f)(sip_msg_t *msg, str *tname, str *tomatch, int mval);

typedef struct mtree_api {
typedef struct mtree_api
{
mt_match_f mt_match;
mt_match_f mt_match_value;
mt_match_f mt_match_values;
} mtree_api_t;

typedef int (*bind_mtree_f)(mtree_api_t* api);
typedef int (*bind_mtree_f)(mtree_api_t *api);

/**
* @brief Load Mtree API
Expand All @@ -42,11 +43,11 @@ static inline int mtree_load_api(mtree_api_t *api)
bind_mtree_f bind_mtree;

bind_mtree = (bind_mtree_f)find_export("bind_mtree", 0, 0);
if (bind_mtree == 0) {
if(bind_mtree == 0) {
LM_ERR("cannot find bind_mtree\n");
return -1;
}
if (bind_mtree(api) <0) {
if(bind_mtree(api) < 0) {
LM_ERR("cannot bind mtree api\n");
return -1;
}
Expand Down

0 comments on commit 777c1cb

Please sign in to comment.