Skip to content

Commit

Permalink
cnxcc: 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 388fa4f commit bd5ffa1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/modules/cnxcc/cnxcc_check.c
Expand Up @@ -69,14 +69,14 @@ void check_calls_by_money(unsigned int ticks, void *param)
call->consumed_amount =
call->money_based.connect_cost
+ (call->money_based.cost_per_second
* call->money_based.initial_pulse)
* call->money_based.initial_pulse)
+ call->money_based.cost_per_second
* ((consumed_time
- call->money_based
.initial_pulse)
/ call->money_based
.final_pulse
+ 1)
/ call->money_based
.final_pulse
+ 1)
* call->money_based.final_pulse;
}

Expand Down
12 changes: 6 additions & 6 deletions src/modules/cnxcc/cnxcc_mod.c
Expand Up @@ -1531,8 +1531,8 @@ static int ki_set_max_credit(sip_msg_t *msg, str *sclient, str *scredit,
}

if(try_get_call_entry(&msg->callid->body, &call, &hts) == 0) {
LM_ERR("call-id[%.*s] already present\n",
msg->callid->body.len, msg->callid->body.s);
LM_ERR("call-id[%.*s] already present\n", msg->callid->body.len,
msg->callid->body.s);
return -4;
}

Expand Down Expand Up @@ -1745,8 +1745,8 @@ static int ki_set_max_channels(sip_msg_t *msg, str *sclient, int max_chan)
}

if(try_get_call_entry(&msg->callid->body, &call, &hts) == 0) {
LM_ERR("call-id[%.*s] already present\n",
msg->callid->body.len, msg->callid->body.s);
LM_ERR("call-id[%.*s] already present\n", msg->callid->body.len,
msg->callid->body.s);
return -4;
}

Expand Down Expand Up @@ -1839,8 +1839,8 @@ static int ki_set_max_time(sip_msg_t *msg, str *sclient, int max_secs)
}

if(try_get_call_entry(&msg->callid->body, &call, &hts) == 0) {
LM_ERR("call-id[%.*s] already present\n",
msg->callid->body.len, msg->callid->body.s);
LM_ERR("call-id[%.*s] already present\n", msg->callid->body.len,
msg->callid->body.s);
return -4;
}

Expand Down

0 comments on commit bd5ffa1

Please sign in to comment.