Module: kamailio
Branch: master
Commit: 991de5e51e799a0110b7aa489eb27f4f01f5dfd2
URL:
https://github.com/kamailio/kamailio/commit/991de5e51e799a0110b7aa489eb27f4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-05-17T09:53:03+02:00
topos: small formatting fixes
---
Modified: src/modules/topos/topos_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/991de5e51e799a0110b7aa489eb27f4…
Patch:
https://github.com/kamailio/kamailio/commit/991de5e51e799a0110b7aa489eb27f4…
---
diff --git a/src/modules/topos/topos_mod.c b/src/modules/topos/topos_mod.c
index bda9d93181..7887232958 100644
--- a/src/modules/topos/topos_mod.c
+++ b/src/modules/topos/topos_mod.c
@@ -776,7 +776,7 @@ int tps_mask_callid(sip_msg_t *msg)
return -1;
}
- LM_DBG("updated (masked) call-id: [%.*s]\n",out.len, out.s);
+ LM_DBG("updated (masked) call-id: [%.*s]\n", out.len, out.s);
if(out.s==NULL) {
LM_ERR("cannot encode callid\n");
return -1;
@@ -820,22 +820,20 @@ int tps_unmask_callid(sip_msg_t *msg)
in=msg->callid->body;
umask_ret=thb.unmask_callid(&in, &out);
if(umask_ret == 1) {
- LM_DBG("Unmask not required\n");
+ LM_DBG("unmask not required\n");
return 0;
- }else if(umask_ret != 0) {
+ } else if(umask_ret != 0) {
LM_ERR("cannot decode callid\n");
return -1;
}
LM_DBG("updated (unmasked) call-id: [%.*s]\n", out.len, out.s);
- if(out.s==NULL)
- {
+ if(out.s==NULL) {
LM_ERR("cannot decode callid\n");
return -1;
}
l=del_lump(msg, msg->callid->body.s-msg->buf, msg->callid->body.len, 0);
- if (l==0)
- {
+ if (l==0) {
LM_ERR("failed deleting callid\n");
pkg_free(out.s);
return -1;