summaryrefslogtreecommitdiff
path: root/ui/cli/tap-rtp.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2014-10-13 15:04:21 -0400
committerBill Meier <wmeier@newsguy.com>2014-10-13 19:09:07 +0000
commit6a9479ecf90ef64f944526354fb26ee876d3ad25 (patch)
treeff0542670c21c9323020d89002d3a2c64e93a46c /ui/cli/tap-rtp.c
parent63faad686b49e02b86cd1961dd3bc8283f120da8 (diff)
downloadwireshark-6a9479ecf90ef64f944526354fb26ee876d3ad25.tar.gz
Add editor modelines and/or adjust whilespace.
Change-Id: I626b7bd8ac6e4b91c57cc9152e7ce038754e7278 Reviewed-on: https://code.wireshark.org/review/4658 Reviewed-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'ui/cli/tap-rtp.c')
-rw-r--r--ui/cli/tap-rtp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/cli/tap-rtp.c b/ui/cli/tap-rtp.c
index 8ab5d3fe9a..765bc47bbb 100644
--- a/ui/cli/tap-rtp.c
+++ b/ui/cli/tap-rtp.c
@@ -60,7 +60,7 @@ rtp_streams_stat_draw(void *arg _U_)
GList *list;
- rtp_stream_info_t* strinfo;
+ rtp_stream_info_t *strinfo;
gchar *payload_type;
guint32 expected;
gint32 lost;
@@ -84,11 +84,11 @@ rtp_streams_stat_draw(void *arg _U_)
strinfo = (rtp_stream_info_t*)(list->data);
/* payload type */
- if(strinfo->pt>95){
- if(strinfo->info_payload_type_str != NULL){
+ if (strinfo->pt > 95) {
+ if (strinfo->info_payload_type_str != NULL) {
payload_type = g_strdup(strinfo->info_payload_type_str);
}else{
- payload_type = g_strdup_printf("Unknown(%u)",strinfo->pt);
+ payload_type = g_strdup_printf("Unknown(%u)", strinfo->pt);
}
}else{
@@ -100,7 +100,7 @@ rtp_streams_stat_draw(void *arg _U_)
expected = (strinfo->rtp_stats.stop_seq_nr + strinfo->rtp_stats.cycles*65536)
- strinfo->rtp_stats.start_seq_nr + 1;
lost = expected - strinfo->rtp_stats.total_nr;
- if (expected){
+ if (expected) {
perc = (double)(lost*100)/(double)expected;
} else {
perc = 0;
@@ -134,7 +134,7 @@ rtp_streams_stat_draw(void *arg _U_)
static void
-rtp_streams_stat_init(const char *opt_arg _U_, void* userdata _U_)
+rtp_streams_stat_init(const char *opt_arg _U_, void *userdata _U_)
{
GString *err_p;
@@ -156,7 +156,7 @@ rtp_streams_stat_init(const char *opt_arg _U_, void* userdata _U_)
void
register_tap_listener_rtp_streams(void)
{
- register_stat_cmd_arg("rtp,streams", rtp_streams_stat_init,NULL);
+ register_stat_cmd_arg("rtp,streams", rtp_streams_stat_init, NULL);
}
/*