Selaa lähdekoodia

ims_usrloc_scscf: fix compilation warning

>impurecord.c:1243:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
>                if ((contact == impucontact->contact)) {
>                     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
>impurecord.c:1243:16: note: remove extraneous parentheses around the comparison to silence this warning
>                if ((contact == impucontact->contact)) {
Victor Seva 7 vuotta sitten
vanhempi
commit
8bc56bbc23
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/modules/ims_usrloc_scscf/impurecord.c

+ 1 - 1
src/modules/ims_usrloc_scscf/impurecord.c

@@ -1240,7 +1240,7 @@ int unlink_contact_from_impu(impurecord_t* impu, ucontact_t* contact, int write_
 	impucontact = impu->linked_contacts.head;
 	impucontact = impu->linked_contacts.head;
 	
 	
 	while (impucontact) {
 	while (impucontact) {
-		if ((contact == impucontact->contact)) {
+		if (contact == impucontact->contact) {
 			remove_impucontact_from_list(impu, impucontact);
 			remove_impucontact_from_list(impu, impucontact);
 			if (write_to_db && db_mode == WRITE_THROUGH && (db_unlink_contact_from_impu(impu, contact) != 0)) {
 			if (write_to_db && db_mode == WRITE_THROUGH && (db_unlink_contact_from_impu(impu, contact) != 0)) {
 				LM_ERR("Failed to un-link DB contact [%.*s] from IMPU [%.*s]...continuing but db will be out of sync!\n", contact->c.len, contact->c.s, impu->public_identity.len, impu->public_identity.s);
 				LM_ERR("Failed to un-link DB contact [%.*s] from IMPU [%.*s]...continuing but db will be out of sync!\n", contact->c.len, contact->c.s, impu->public_identity.len, impu->public_identity.s);