Skip to content

Commit

Permalink
mqueue: 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 5afc714 commit 31af21a
Show file tree
Hide file tree
Showing 5 changed files with 327 additions and 412 deletions.
12 changes: 6 additions & 6 deletions src/modules/mqueue/api.h
Expand Up @@ -19,16 +19,17 @@
*
*/


#ifndef _MQUEUE_EXT_API_H_
#define _MQUEUE_EXT_API_H_

typedef int (*mq_add_f)(str*, str*, str*);
typedef struct mq_api {
typedef int (*mq_add_f)(str *, str *, str *);
typedef struct mq_api
{
mq_add_f add;
} mq_api_t;

typedef int (*bind_mq_f)(mq_api_t* api);
typedef int (*bind_mq_f)(mq_api_t *api);

static inline int load_mq_api(mq_api_t *api)
{
Expand All @@ -39,8 +40,7 @@ static inline int load_mq_api(mq_api_t *api)
LM_ERR("cannot find bind_mq\n");
return -1;
}
if(bindmq(api)<0)
{
if(bindmq(api) < 0) {
LM_ERR("cannot bind mq api\n");
return -1;
}
Expand Down

0 comments on commit 31af21a

Please sign in to comment.