[sr-dev] git:master:3af08bbd: dialod: indentation fixed

KORAY VATANSEVER koray.vatansever at turkcell.com.tr
Mon Dec 9 12:45:03 CET 2019


Module: kamailio
Branch: master
Commit: 3af08bbd0bffacc6b31029e436ce729b1952d4a9
URL: https://github.com/kamailio/kamailio/commit/3af08bbd0bffacc6b31029e436ce729b1952d4a9

Author: KORAY VATANSEVER <koray.vatansever at turkcell.com.tr>
Committer: KORAY VATANSEVER <koray.vatansever at turkcell.com.tr>
Date: 2019-12-09T09:09:40+03:00

dialod: indentation fixed

---

Modified: src/modules/dialog/dialog.c

---

Diff:  https://github.com/kamailio/kamailio/commit/3af08bbd0bffacc6b31029e436ce729b1952d4a9.diff
Patch: https://github.com/kamailio/kamailio/commit/3af08bbd0bffacc6b31029e436ce729b1952d4a9.patch

---

diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c
index e10b74e12c..381017032e 100644
--- a/src/modules/dialog/dialog.c
+++ b/src/modules/dialog/dialog.c
@@ -245,7 +245,7 @@ static cmd_export_t cmds[]={
 			0, ANY_ROUTE },
 	{"dlg_set_property", (cmd_function)w_dlg_set_property,1,fixup_spve_null,
 			0, ANY_ROUTE },
-    {"dlg_reset_property", (cmd_function)w_dlg_reset_property,1,fixup_spve_null,
+	{"dlg_reset_property", (cmd_function)w_dlg_reset_property,1,fixup_spve_null,
             0, ANY_ROUTE }, 			
 	{"dlg_remote_profile", (cmd_function)w_dlg_remote_profile, 5, fixup_dlg_remote_profile,
 			0, ANY_ROUTE },
@@ -1342,36 +1342,36 @@ static int ki_dlg_reset_property(sip_msg_t *msg, str *pval)
 	dlg_cell_t *d;
 
 	if(pval->len<=0) {
-			LM_ERR("empty property value\n");
-			return -1;
+		LM_ERR("empty property value\n");
+		return -1;
 	}
 	if ( (dctx=dlg_get_dlg_ctx())==NULL )
-			return -1;
+		return -1;
 
 	if(pval->len==6 && strncmp(pval->s, "ka-src", 6)==0) {
-			dctx->iflags &= ~(DLG_IFLAG_KA_SRC);
-			d = dlg_get_by_iuid(&dctx->iuid);
-			if(d!=NULL) {
-					d->iflags &= ~(DLG_IFLAG_KA_SRC);
-					dlg_release(d);
-			}
+		dctx->iflags &= ~(DLG_IFLAG_KA_SRC);
+		d = dlg_get_by_iuid(&dctx->iuid);
+		if(d!=NULL) {
+			d->iflags &= ~(DLG_IFLAG_KA_SRC);
+			dlg_release(d);
+		}
 	} else if(pval->len==6 && strncmp(pval->s, "ka-dst", 6)==0) {
-			dctx->iflags &= ~(DLG_IFLAG_KA_DST);
-			d = dlg_get_by_iuid(&dctx->iuid);
-			if(d!=NULL) {
-					d->iflags &= ~(DLG_IFLAG_KA_DST);
-					dlg_release(d);
-			}
+		dctx->iflags &= ~(DLG_IFLAG_KA_DST);
+		d = dlg_get_by_iuid(&dctx->iuid);
+		if(d!=NULL) {
+			d->iflags &= ~(DLG_IFLAG_KA_DST);
+			dlg_release(d);
+		}
 	} else if(pval->len==15 && strncmp(pval->s, "timeout-noreset", 15)==0) {
-			dctx->iflags &= ~(DLG_IFLAG_TIMER_NORESET);
-			d = dlg_get_by_iuid(&dctx->iuid);
-			if(d!=NULL) {
-					d->iflags &= ~(DLG_IFLAG_TIMER_NORESET);
-					dlg_release(d);
-			}
+		dctx->iflags &= ~(DLG_IFLAG_TIMER_NORESET);
+		d = dlg_get_by_iuid(&dctx->iuid);
+		if(d!=NULL) {
+			d->iflags &= ~(DLG_IFLAG_TIMER_NORESET);
+			dlg_release(d);
+		}
 	} else {
-			LM_ERR("unknown property value [%.*s]\n", pval->len, pval->s);
-			return -1;
+		LM_ERR("unknown property value [%.*s]\n", pval->len, pval->s);
+		return -1;
 	}
 
 	return 1;
@@ -1386,8 +1386,8 @@ static int w_dlg_reset_property(struct sip_msg *msg, char *prop, char *s2)
 
 	if(fixup_get_svalue(msg, (gparam_t*)prop, &val)!=0)
 	{
-			LM_ERR("no property value\n");
-			return -1;
+		LM_ERR("no property value\n");
+		return -1;
 	}
 
 	return ki_dlg_reset_property(msg, &val);




More information about the sr-dev mailing list