Widen the Ethertype to a guint, to avoid compiler warnings.

Fix indentation while we're at it.

svn path=/trunk/; revision=53493
This commit is contained in:
Guy Harris 2013-11-21 20:50:13 +00:00
parent dad2b94703
commit 63c8b20360
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ dissect_ethertype(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
next_tvb = tvb_new_subset(tvb, ethertype_data->offset_after_ethertype, captured_length,
reported_length);
p_add_proto_data(pinfo->fd, proto_ethertype, 0, GUINT_TO_POINTER(ethertype_data->etype));
p_add_proto_data(pinfo->fd, proto_ethertype, 0, GUINT_TO_POINTER((guint)ethertype_data->etype));
/* Look for sub-dissector, and call it if found.
Catch exceptions, so that if the reported length of "next_tvb"