Bläddra i källkod

topos: small formatting fixes

(cherry picked from commit 991de5e51e799a0110b7aa489eb27f4f01f5dfd2)
Daniel-Constantin Mierla 2 år sedan
förälder
incheckning
f34ae12f63
1 ändrade filer med 5 tillägg och 7 borttagningar
  1. 5 7
      src/modules/topos/topos_mod.c

+ 5 - 7
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;