diff options
author | Dario Lombardo <lomato@gmail.com> | 2018-03-17 19:18:31 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-03-17 21:24:13 +0000 |
commit | c26f7daae33290949becbcbc52261c8a3a9da24d (patch) | |
tree | ae3ce23b0bc8d77bd366d19787a7a8a0b4aa1b97 /ui/tap-iax2-analysis.c | |
parent | 31425eac725308efc15c37b03a3b8462c266ece0 (diff) |
tap-iax2-analysis: fix minor indentation issues.
Change-Id: I778fb32450e43a28b15e78e1e90ed7b69d4f341a
Reviewed-on: https://code.wireshark.org/review/26524
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/tap-iax2-analysis.c')
-rw-r--r-- | ui/tap-iax2-analysis.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ui/tap-iax2-analysis.c b/ui/tap-iax2-analysis.c index 6d0a86c268..f4387434f4 100644 --- a/ui/tap-iax2-analysis.c +++ b/ui/tap-iax2-analysis.c @@ -30,7 +30,7 @@ /* This comes from tap-rtp-common.c */ /****************************************************************************/ - void +void iax2_packet_analyse(tap_iax2_stat_t *statinfo, packet_info *pinfo, const struct _iax2_info_t *iax2info) @@ -42,8 +42,9 @@ iax2_packet_analyse(tap_iax2_stat_t *statinfo, statinfo->flags = 0; /* check payload type */ if (iax2info->ftype == AST_FRAME_VOICE) { - if (iax2info->csub != statinfo->pt) + if (iax2info->csub != statinfo->pt) { statinfo->flags |= STAT_FLAG_PT_CHANGE; + } statinfo->pt = iax2info->csub; } @@ -62,13 +63,16 @@ iax2_packet_analyse(tap_iax2_stat_t *statinfo, while ((statinfo->bw_history[statinfo->bw_start_index].time+1) < current_time) { statinfo->total_bytes -= statinfo->bw_history[statinfo->bw_start_index].bytes; statinfo->bw_start_index++; - if (statinfo->bw_start_index == BUFF_BW) statinfo->bw_start_index = 0; + if (statinfo->bw_start_index == BUFF_BW) { + statinfo->bw_start_index = 0; + } }; statinfo->total_bytes += iax2info->payload_len + 24; statinfo->bandwidth = (double)(statinfo->total_bytes*8)/1000; statinfo->bw_index++; - if (statinfo->bw_index == BUFF_BW) statinfo->bw_index = 0; - + if (statinfo->bw_index == BUFF_BW) { + statinfo->bw_index = 0; + } /* is this the first packet we got in this direction? */ if (statinfo->first_packet) { |