Skip to content

Commit

Permalink
presence_profile: 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 5152e27 commit 7c729f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/modules/presence_profile/add_events.c
Expand Up @@ -48,12 +48,12 @@ int profile_add_events(void)
event.content_type.s = "text/xml";
event.content_type.len = 8;

event.default_expires= pres_profile_default_expires;
event.default_expires = pres_profile_default_expires;
event.type = PUBL_TYPE;
event.req_auth = 0;
event.evs_publ_handl = 0;

if (pres_add_event(&event) < 0) {
if(pres_add_event(&event) < 0) {
LM_ERR("failed to add event \"ua-profile\"\n");
return -1;
}
Expand Down
13 changes: 6 additions & 7 deletions src/modules/presence_profile/presence_profile.c
Expand Up @@ -61,9 +61,8 @@ unsigned int pres_profile_default_expires = 3600;

/* module exported parameters */
static param_export_t params[] = {
{ "default_expires", INT_PARAM, &pres_profile_default_expires },
{0, 0, 0}
};
{"default_expires", INT_PARAM, &pres_profile_default_expires},
{0, 0, 0}};

/* module exports */
/* clang-format off */
Expand All @@ -89,18 +88,18 @@ static int mod_init(void)
presence_api_t pres;
bind_presence_t bind_presence;

bind_presence= (bind_presence_t)find_export("bind_presence", 1,0);
if (!bind_presence) {
bind_presence = (bind_presence_t)find_export("bind_presence", 1, 0);
if(!bind_presence) {
LM_ERR("can't bind presence\n");
return -1;
}
if (bind_presence(&pres) < 0) {
if(bind_presence(&pres) < 0) {
LM_ERR("can't bind pua\n");
return -1;
}

pres_add_event = pres.add_event;
if (pres_add_event == NULL) {
if(pres_add_event == NULL) {
LM_ERR("could not import add_event\n");
return -1;
}
Expand Down

0 comments on commit 7c729f6

Please sign in to comment.