TT#111150 Use {} instead of ; to mark an empty body

Change-Id: Ib87db24dbb0d89cb03052e7b8a2e8d8802246c33
Warned-by: gcc -Wempty-body
pull/1262/head
Guillem Jover 5 years ago
parent adbd071c14
commit 6fc793845b

@ -102,7 +102,7 @@ static int control_stream_parse(struct streambuf_stream *s, char *line) {
else if (!strcmp(out[RE_TCP_DIV_CMD], "controls"))
control_list(c, s);
else if (!strcmp(out[RE_TCP_DIV_CMD], "quit") || !strcmp(out[RE_TCP_DIV_CMD], "exit"))
;
{}
if (output) {
streambuf_write_str(s->outbuf, output);

@ -729,7 +729,7 @@ int dtls(struct stream_fd *sfd, const str *s, const endpoint_t *fsin) {
/* connected! */
mutex_lock(&ps->out_lock); // nested lock!
if (dtls_setup_crypto(ps, d))
/* XXX ?? */ ;
{} /* XXX ?? */
mutex_unlock(&ps->out_lock);
if (PS_ISSET(ps, RTP) && PS_ISSET(ps, RTCP) && ps->rtcp_sibling
@ -740,7 +740,7 @@ int dtls(struct stream_fd *sfd, const str *s, const endpoint_t *fsin) {
mutex_lock(&ps->rtcp_sibling->in_lock);
mutex_lock(&ps->rtcp_sibling->out_lock);
if (dtls_setup_crypto(ps->rtcp_sibling, d))
/* XXX ?? */ ;
{} /* XXX ?? */
mutex_unlock(&ps->rtcp_sibling->out_lock);
mutex_unlock(&ps->rtcp_sibling->in_lock);
}

@ -1525,8 +1525,9 @@ static int media_demux_protocols(struct packet_handler_ctx *phc) {
call_media_state_machine(phc->mp.media);
return 1;
}
else /* not an stun packet */
;
else {
/* not an stun packet */
}
}
return -1;
}

Loading…
Cancel
Save