[sr-dev] git:master:284fcb68: dispatcher: reformated code to fit in 80char lines for keepalives function

Daniel-Constantin Mierla miconda at gmail.com
Tue Aug 25 09:00:33 CEST 2015


Module: kamailio
Branch: master
Commit: 284fcb685b1691b25ea73a170467d862b1b67929
URL: https://github.com/kamailio/kamailio/commit/284fcb685b1691b25ea73a170467d862b1b67929

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-08-25T08:59:44+02:00

dispatcher: reformated code to fit in 80char lines for keepalives function

---

Modified: modules/dispatcher/dispatch.c

---

Diff:  https://github.com/kamailio/kamailio/commit/284fcb685b1691b25ea73a170467d862b1b67929.diff
Patch: https://github.com/kamailio/kamailio/commit/284fcb685b1691b25ea73a170467d862b1b67929.patch

---

diff --git a/modules/dispatcher/dispatch.c b/modules/dispatcher/dispatch.c
index 1cc3470..1188692 100644
--- a/modules/dispatcher/dispatch.c
+++ b/modules/dispatcher/dispatch.c
@@ -2754,11 +2754,13 @@ static void ds_options_callback( struct cell *t, int type,
 		/* Set the according entry back to "Active" */
 		state = 0;
 		if (ds_probing_mode==DS_PROBE_ALL || 
-                    (ds_probing_mode == DS_PROBE_ONLYFLAGGED && ds_get_state(group, &uri) & DS_PROBING_DST))
+                    ((ds_probing_mode==DS_PROBE_ONLYFLAGGED)
+						&& (ds_get_state(group, &uri) & DS_PROBING_DST)))
 			state |= DS_PROBING_DST;
 
 		/* Check if in the meantime someone disabled the target through RPC or MI */
-		if (!(ds_get_state(group, &uri) & DS_DISABLED_DST) && ds_update_state(fmsg, group, &uri, state) != 0)
+		if (!(ds_get_state(group, &uri) & DS_DISABLED_DST)
+				&& ds_update_state(fmsg, group, &uri, state) != 0)
 		{
 			LM_ERR("Setting the state failed (%.*s, group %d)\n", uri.len,
 					uri.s, group);
@@ -2768,7 +2770,8 @@ static void ds_options_callback( struct cell *t, int type,
 		if (ds_probing_mode!=DS_PROBE_NONE)
 			state |= DS_PROBING_DST;
 		/* Check if in the meantime someone disabled the target through RPC or MI */
-		if (!(ds_get_state(group, &uri) & DS_DISABLED_DST) && ds_update_state(fmsg, group, &uri, state) != 0)
+		if (!(ds_get_state(group, &uri) & DS_DISABLED_DST)
+				&& ds_update_state(fmsg, group, &uri, state) != 0)
 		{
 			LM_ERR("Setting the probing state failed (%.*s, group %d)\n",
 					uri.len, uri.s, group);




More information about the sr-dev mailing list