Index: rtp.c =================================================================== --- rtp.c (revision 48974) +++ rtp.c (working copy) @@ -275,7 +275,7 @@ static const char *stun_msg2str(int msg) { - switch(msg) { + switch (msg) { case STUN_BINDREQ: return "Binding Request"; case STUN_BINDRESP: @@ -294,7 +294,7 @@ static const char *stun_attr2str(int msg) { - switch(msg) { + switch (msg) { case STUN_MAPPED_ADDRESS: return "Mapped Address"; case STUN_RESPONSE_ADDRESS: @@ -331,7 +331,7 @@ if (stundebug) ast_verbose("Found STUN Attribute %s (%04x), length %d\n", stun_attr2str(ntohs(attr->attr)), ntohs(attr->attr), ntohs(attr->len)); - switch(ntohs(attr->attr)) { + switch (ntohs(attr->attr)) { case STUN_USERNAME: state->username = (const char *) (attr->value); break; @@ -439,7 +439,7 @@ len = ntohs(hdr->msglen); data += sizeof(struct stun_header); memset(&st, 0, sizeof(st)); - while(len) { + while (len) { if (len < sizeof(struct stun_attr)) { if (option_debug) ast_log(LOG_DEBUG, "Runt Attribute (got %zd, expecting %zd)\n", len, sizeof(struct stun_attr)); @@ -471,7 +471,7 @@ resp->msglen = 0; attr = (struct stun_attr *)resp->ies; if (!len) { - switch(ntohs(hdr->msgtype)) { + switch (ntohs(hdr->msgtype)) { case STUN_BINDREQ: if (stundebug) ast_verbose("STUN Bind Request, username: %s\n", @@ -1503,7 +1503,7 @@ /* Lock channels */ ast_channel_lock(c0); if (c1) { - while(ast_channel_trylock(c1)) { + while (ast_channel_trylock(c1)) { ast_channel_unlock(c0); usleep(1); ast_channel_lock(c0); @@ -1578,7 +1578,7 @@ /* Lock channels */ ast_channel_lock(dest); - while(ast_channel_trylock(src)) { + while (ast_channel_trylock(src)) { ast_channel_unlock(dest); usleep(1); ast_channel_lock(dest); @@ -2748,7 +2748,7 @@ ast_smoother_feed(rtp->smoother, _f); } - while((f = ast_smoother_read(rtp->smoother))) + while ((f = ast_smoother_read(rtp->smoother))) ast_rtp_raw_write(rtp, f, codec); } else { /* Don't buffer outgoing frames; send them one-per-packet: */ @@ -3201,7 +3201,7 @@ /* Lock channels */ ast_channel_lock(c0); - while(ast_channel_trylock(c1)) { + while (ast_channel_trylock(c1)) { ast_channel_unlock(c0); usleep(1); ast_channel_lock(c0);