/* Check if there is unused data and if there is warn about it. */
static gboolean c_warn_unused(proto_tree *tree, tvbuff_t *tvb, guint start, guint end, c_pkt_data *data)
/* Check if there is unused data and if there is warn about it. */
static gboolean c_warn_unused(proto_tree *tree, tvbuff_t *tvb, guint start, guint end, c_pkt_data *data)
{
	guint diff;
	DISSECTOR_ASSERT_CMPUINT(start, <=, end);
	diff = end - start;
	if (!diff) return FALSE;
	proto_tree_add_expert_format(tree, data->pinfo, &ei_unused,
				     tvb, start, diff,
				     "%u unused byte%s", diff, diff == 1? "":"s");
	return TRUE;
}