forked from osmocom/wireshark
Just use proto_tree_add_item(), don't use a fancy sequence of code that
yields the same result. svn path=/trunk/; revision=31225
This commit is contained in:
parent
9a4bdbf9ea
commit
28ccd651bf
|
@ -437,7 +437,6 @@ decode_epl_address_abbrev (guchar adr)
|
|||
gint
|
||||
dissect_epl_soc(proto_tree *epl_tree, tvbuff_t *tvb, packet_info *pinfo, gint offset)
|
||||
{
|
||||
nstime_t nettime;
|
||||
guint8 flags;
|
||||
|
||||
offset += 1;
|
||||
|
@ -458,10 +457,7 @@ dissect_epl_soc(proto_tree *epl_tree, tvbuff_t *tvb, packet_info *pinfo, gint of
|
|||
|
||||
if (epl_tree)
|
||||
{
|
||||
nettime.secs = tvb_get_letohl(tvb, offset);
|
||||
nettime.nsecs = tvb_get_letohl(tvb, offset+4);
|
||||
proto_tree_add_time_format_value(epl_tree, hf_epl_soc_nettime,
|
||||
tvb, offset, 8, &nettime, "%s", abs_time_to_str(&nettime));
|
||||
proto_tree_add_item(epl_tree, hf_epl_soc_nettime, tvb, offset, 8, TRUE);
|
||||
offset += 8;
|
||||
|
||||
proto_tree_add_item(epl_tree, hf_epl_soc_relativetime, tvb, offset, 8, TRUE);
|
||||
|
|
Loading…
Reference in New Issue