[sr-dev] git:master:5395bbe6: modules/ims_dialog: fix clang warning -Wparentheses-equality

Mikko Lehto mslehto at iki.fi
Fri Jun 3 09:25:49 CEST 2016


Module: kamailio
Branch: master
Commit: 5395bbe6522ab9b9874162874935119cff8aa764
URL: https://github.com/kamailio/kamailio/commit/5395bbe6522ab9b9874162874935119cff8aa764

Author: Mikko Lehto <mslehto at iki.fi>
Committer: Mikko Lehto <mslehto at iki.fi>
Date: 2016-05-25T13:49:39+03:00

modules/ims_dialog: fix clang warning -Wparentheses-equality

---

Modified: modules/ims_dialog/dlg_hash.c

---

Diff:  https://github.com/kamailio/kamailio/commit/5395bbe6522ab9b9874162874935119cff8aa764.diff
Patch: https://github.com/kamailio/kamailio/commit/5395bbe6522ab9b9874162874935119cff8aa764.patch

---

diff --git a/modules/ims_dialog/dlg_hash.c b/modules/ims_dialog/dlg_hash.c
index 26817ac..cc6db50 100644
--- a/modules/ims_dialog/dlg_hash.c
+++ b/modules/ims_dialog/dlg_hash.c
@@ -671,7 +671,7 @@ void dlg_remove_dlg_out(struct dlg_cell_out *dlg_out_do_not_remove, struct dlg_c
             LM_DBG("This is the dlg_out not to be removed!\n");
         } else {
             //check if this the last entry in the entry_table
-            if ((d_entry_out->first == d_entry_out->last)) {
+            if (d_entry_out->first == d_entry_out->last) {
                 //we shouldnt ever get here
                 LM_DBG("This is the last dlg_out_entry in the dlg_entries_out\n");
                 //this is the last then set entry_out-> first and entry_out->last to zero




More information about the sr-dev mailing list