diff --git a/daemon/control_tcp.c b/daemon/control_tcp.c index 2563eb649..b59a723fa 100644 --- a/daemon/control_tcp.c +++ b/daemon/control_tcp.c @@ -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); diff --git a/daemon/dtls.c b/daemon/dtls.c index e147a5482..d545f38c0 100644 --- a/daemon/dtls.c +++ b/daemon/dtls.c @@ -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); } diff --git a/daemon/media_socket.c b/daemon/media_socket.c index 51bab5878..258d8ab0d 100644 --- a/daemon/media_socket.c +++ b/daemon/media_socket.c @@ -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; }