aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-02-03 08:13:36 -0500
committerEvan Huus <eapache@gmail.com>2014-02-03 13:16:43 +0000
commit6d2f865b3513948ca4ab3f76fa4bf1a7f8f07f5a (patch)
tree03333c82e3015d4e0d0a589217d60658610637cf /epan
parentc93ddddb6efe78369fae1d3552989db14b8130aa (diff)
Add a cast to fix g4cc694839d.
Apparently very recent gcc versions *do* complain about the cast from gint to enum, despite the comment to the contrary. Change-Id: I422df9950f1c7c46ca8ea37a0e3abd7aa8fc1c7d Reviewed-on: https://code.wireshark.org/review/89 Reviewed-by: Evan Huus <eapache@gmail.com> Tested-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-time.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-time.c b/epan/dissectors/packet-time.c
index 373ed50cd7..988fe34a62 100644
--- a/epan/dissectors/packet-time.c
+++ b/epan/dissectors/packet-time.c
@@ -77,7 +77,8 @@ dissect_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
guint32 delta_seconds = tvb_get_ntohl(tvb, 0);
proto_tree_add_uint_format(time_tree, hf_time_time, tvb, 0, 4,
delta_seconds, "%s",
- abs_time_secs_to_ep_str(delta_seconds-2208988800U, time_display_type, TRUE));
+ abs_time_secs_to_ep_str(delta_seconds-2208988800U,
+ (absolute_time_display_e)time_display_type, TRUE));
}
}