aboutsummaryrefslogtreecommitdiffstats
path: root/ui/packet_list_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/packet_list_utils.c')
-rw-r--r--ui/packet_list_utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/packet_list_utils.c b/ui/packet_list_utils.c
index 0f8ab2b775..348fa9ccc5 100644
--- a/ui/packet_list_utils.c
+++ b/ui/packet_list_utils.c
@@ -37,7 +37,7 @@ right_justify_column (gint col, capture_file *cf)
if (!cf) return FALSE;
- switch (cf->cinfo.col_fmt[col]) {
+ switch (cf->cinfo.columns[col].col_fmt) {
case COL_NUMBER:
case COL_PACKET_LENGTH:
@@ -54,7 +54,7 @@ right_justify_column (gint col, capture_file *cf)
break;
case COL_CUSTOM:
- hfi = proto_registrar_get_byname(cf->cinfo.col_custom_field[col]);
+ hfi = proto_registrar_get_byname(cf->cinfo.columns[col].col_custom_field);
/* Check if this is a valid field and we have no strings lookup table */
if ((hfi != NULL) && ((hfi->strings == NULL) || !get_column_resolved(col))) {
/* Check for bool, framenum and decimal/octal integer types */
@@ -81,10 +81,10 @@ resolve_column (gint col, capture_file *cf)
if (!cf) return FALSE;
- switch (cf->cinfo.col_fmt[col]) {
+ switch (cf->cinfo.columns[col].col_fmt) {
case COL_CUSTOM:
- hfi = proto_registrar_get_byname(cf->cinfo.col_custom_field[col]);
+ hfi = proto_registrar_get_byname(cf->cinfo.columns[col].col_custom_field);
/* Check if this is a valid field */
if (hfi != NULL) {
/* Check if we have an OID or a strings table with integer values */