Module: sems
Branch: master
Commit: 903e909f8b6cd196a3d6af43438310a925c243b7
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=903e909f8b6cd196a3d6af43438310a925c243b7

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Tue Sep 21 15:32:04 2010 +0200

add suggested parentheses around ‘&&’ within ‘||’

---

 core/AmSipDialog.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp
index a1df646..2b6d3d2 100644
--- a/core/AmSipDialog.cpp
+++ b/core/AmSipDialog.cpp
@@ -109,11 +109,11 @@ void AmSipDialog::updateStatus(const AmSipRequest& req)
 
   // target refresh requests
   if (req.from_uri.length() &&
-      (req.method.length()==6 &&
-       ((req.method == "INVITE") ||
-       (req.method == "UPDATE") ||
-       (req.method == "NOTIFY"))) ||
-      (req.method == "SUBSCRIBE"))
+      ((req.method.length()==6 &&
+       ((req.method == "INVITE") ||
+        (req.method == "UPDATE") ||
+        (req.method == "NOTIFY"))) ||
+       (req.method == "SUBSCRIBE")))
     {
 
     remote_uri = req.from_uri;

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to