Skip to content

Commit

Permalink
ims_charging: fixed misleading-indentation warning GH #3012
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-safarov authored and miconda committed Feb 7, 2022
1 parent adb2d53 commit d94879b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/modules/ims_charging/ims_ro.c
Expand Up @@ -1604,23 +1604,23 @@ static int create_cca_result_code(int result) {

static int create_cca_fui_avps(int action, str* redirecturi) {
int_str action_avp_val, action_avp_name, redirecturi_avp_val, redirecturi_avp_name;
action_avp_name.s.s = RO_AVP_CCA_FUI_ACTION;
action_avp_name.s.len = RO_AVP_CCA_FUI_ACTION_LENGTH;
action_avp_name.s.s = RO_AVP_CCA_FUI_ACTION;
action_avp_name.s.len = RO_AVP_CCA_FUI_ACTION_LENGTH;
redirecturi_avp_name.s.s = RO_AVP_CCA_FUI_REDIRECT_URI;
redirecturi_avp_name.s.len = RO_AVP_CCA_FUI_REDIRECT_URI_LENGTH;
char buf[10];
redirecturi_avp_name.s.len = RO_AVP_CCA_FUI_REDIRECT_URI_LENGTH;
char buf[10];
int rc;

action_avp_val.n = action;
action_avp_val.s.len = snprintf(buf, 10, "%i", action);
action_avp_val.s.s = buf;
action_avp_val.n = action;
action_avp_val.s.len = snprintf(buf, 10, "%i", action);
action_avp_val.s.s = buf;

rc = add_avp(AVP_NAME_STR|AVP_VAL_STR, action_avp_name, action_avp_val);
rc = add_avp(AVP_NAME_STR|AVP_VAL_STR, action_avp_name, action_avp_val);

if (rc < 0)
LM_ERR("Couldn't create ["RO_AVP_CCA_FUI_ACTION"] AVP\n");
else
LM_DBG("Created AVP ["RO_AVP_CCA_FUI_ACTION"] successfully: value=[%d]\n", action);
if (rc < 0)
LM_ERR("Couldn't create ["RO_AVP_CCA_FUI_ACTION"] AVP\n");
else
LM_DBG("Created AVP ["RO_AVP_CCA_FUI_ACTION"] successfully: value=[%d]\n", action);

if (redirecturi && redirecturi->len >0 && redirecturi->s) {
redirecturi_avp_val.s.len = redirecturi->len;
Expand All @@ -1634,7 +1634,7 @@ static int create_cca_fui_avps(int action, str* redirecturi) {
LM_DBG("Created AVP ["RO_AVP_CCA_FUI_REDIRECT_URI"] successfully: value=[%.*s]\n", redirecturi->len, redirecturi->s);
}

return 1;
return 1;
}

static int get_mac_avp_value(struct sip_msg *msg, str *value) {
Expand Down

0 comments on commit d94879b

Please sign in to comment.