提交 4ea2ae5d authored 作者: Travis Cross's avatar Travis Cross

Remove extraneous parentheses

This resolves a clang warning:

  error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
上级 9030549a
......@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论