]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Remove extraneous parentheses
authorTravis Cross <tc@traviscross.com>
Sun, 26 May 2013 09:17:19 +0000 (09:17 +0000)
committerTravis Cross <tc@traviscross.com>
Sun, 26 May 2013 12:19:19 +0000 (12:19 +0000)
This resolves a clang warning:

  error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]

src/switch_rtp.c

index f4bcb476e7d9345d74f650603d82eb93fc5a2709..2080ba528754eac1f524f1b118482c8343d94dbd 100644 (file)
@@ -961,7 +961,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
        }
 
        if (ok || !ice->rready) {
-               if ((packet->header.type == SWITCH_STUN_BINDING_RESPONSE)) {
+               if (packet->header.type == SWITCH_STUN_BINDING_RESPONSE) {
 
                        if (!ice->rready) {
                                if (rtp_session->flags[SWITCH_RTP_FLAG_RTCP_MUX]) {
@@ -973,7 +973,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
 
                                switch_rtp_set_flag(rtp_session, SWITCH_RTP_FLAG_FLUSH);
                        }
-               } else if ((packet->header.type == SWITCH_STUN_BINDING_REQUEST)) {
+               } else if (packet->header.type == SWITCH_STUN_BINDING_REQUEST) {
                        uint8_t stunbuf[512];
                        switch_stun_packet_t *rpacket;
                        const char *remote_ip;