Module: kamailio
Branch: 5.7
Commit: f34ae12f63f0ed8d0577de3b36843cd5b96a7a36
URL:
https://github.com/kamailio/kamailio/commit/f34ae12f63f0ed8d0577de3b36843cd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-05-17T10:00:13+02:00
topos: small formatting fixes
(cherry picked from commit 991de5e51e799a0110b7aa489eb27f4f01f5dfd2)
---
Modified: src/modules/topos/topos_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f34ae12f63f0ed8d0577de3b36843cd…
Patch:
https://github.com/kamailio/kamailio/commit/f34ae12f63f0ed8d0577de3b36843cd…
---
diff --git a/src/modules/topos/topos_mod.c b/src/modules/topos/topos_mod.c
index bda9d931811..78872329588 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;