diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-12-28 16:18:12 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-12-29 00:20:09 +0000 |
commit | 0c156fec93e31a8d80653e0288925acf2275111e (patch) | |
tree | d0e12ca4d505160cbb3ab3f746c6f8e6b51d5d81 /ui/cli | |
parent | affa8011a2fc5e8128e7d5bf46df15e8e7b491db (diff) | |
download | wireshark-0c156fec93e31a8d80653e0288925acf2275111e.tar.gz |
There's no "old" stat_tap_table, so remove "new_" from the name.
Change-Id: I1a0349d5d9d47210a97ff7a99fb358e59fd70e72
Reviewed-on: https://code.wireshark.org/review/12896
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/cli')
-rw-r--r-- | ui/cli/tap-simple_stattable.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/cli/tap-simple_stattable.c b/ui/cli/tap-simple_stattable.c index 08edce0427..54569687c7 100644 --- a/ui/cli/tap-simple_stattable.c +++ b/ui/cli/tap-simple_stattable.c @@ -43,30 +43,30 @@ simple_draw(void *arg) size_t i; guint table_index, element, field_index; stat_tap_table_item* field; - new_stat_tap_table* table; + stat_tap_table* table; stat_tap_table_item_type* field_data; gchar fmt_string[250]; /* printing results */ printf("\n"); printf("=====================================================================================================\n"); - printf("%s:\n", stat_data->new_stat_tap_data->title); + printf("%s:\n", stat_data->stat_tap_data->title); printf("Filter for statistics: %s\n", stats->filter ? stats->filter : ""); - for (i = 0, field = stat_data->new_stat_tap_data->fields; i < stat_data->new_stat_tap_data->nfields; i++, field++) + for (i = 0, field = stat_data->stat_tap_data->fields; i < stat_data->stat_tap_data->nfields; i++, field++) { printf("%s |", field->column_name); } printf("\n"); /* To iterate is human, and to recurse is divine. I am human */ - for (table_index = 0; table_index < stat_data->new_stat_tap_data->tables->len; table_index++) + for (table_index = 0; table_index < stat_data->stat_tap_data->tables->len; table_index++) { - table = g_array_index(stat_data->new_stat_tap_data->tables, new_stat_tap_table*, table_index); + table = g_array_index(stat_data->stat_tap_data->tables, stat_tap_table*, table_index); printf("%s\n", table->title); for (element = 0; element < table->num_elements; element++) { - for (field_index = 0, field = stat_data->new_stat_tap_data->fields; field_index < table->num_fields; field_index++, field++) + for (field_index = 0, field = stat_data->stat_tap_data->fields; field_index < table->num_fields; field_index++, field++) { field_data = new_stat_tap_get_field_data(table, element, field_index); if (field_data->type == TABLE_ITEM_NONE) /* Nothing for us here */ @@ -108,7 +108,7 @@ init_stat_table(new_stat_tap_ui *new_stat_tap, const char *filter) ui = g_new0(table_stat_t, 1); ui->filter = g_strdup(filter); - ui->stats.new_stat_tap_data = new_stat_tap; + ui->stats.stat_tap_data = new_stat_tap; ui->stats.user_data = ui; new_stat_tap->stat_tap_init_cb(new_stat_tap, NULL, NULL); |