diff options
author | Bill Meier <wmeier@newsguy.com> | 2012-03-06 03:20:17 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2012-03-06 03:20:17 +0000 |
commit | d3cfffd72aae1870e24a1b1c548409861b365602 (patch) | |
tree | 2b4e0a3dd6e56aafcbe80c745c84080618baba00 /epan/dissectors/packet-aruba-papi.c | |
parent | 594b358011f1cf875a902b05308ac9ab61724535 (diff) |
Use tvb_new_subset_remaining() rather than tvb_new_subset();
Do minir whitespace cleanup.
svn path=/trunk/; revision=41366
Diffstat (limited to 'epan/dissectors/packet-aruba-papi.c')
-rw-r--r-- | epan/dissectors/packet-aruba-papi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-aruba-papi.c b/epan/dissectors/packet-aruba-papi.c index c56a74a4e4..595e4a3451 100644 --- a/epan/dissectors/packet-aruba-papi.c +++ b/epan/dissectors/packet-aruba-papi.c @@ -143,7 +143,7 @@ dissect_papi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { proto_item *ti; proto_tree *papi_tree; - guint offset = 0; + guint offset = 0; tvbuff_t *next_tvb; @@ -204,8 +204,8 @@ dissect_papi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset = dissect_papi_debug(tvb, offset, papi_tree); } - next_tvb = tvb_new_subset(tvb, offset, -1, -1); - call_dissector(data_handle,next_tvb, pinfo, tree); + next_tvb = tvb_new_subset_remaining(tvb, offset); + call_dissector(data_handle,next_tvb, pinfo, tree); } return(TRUE); |