This resolves a clang warning:
error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
}
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]) {
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;