diff options
author | Bill Meier <wmeier@newsguy.com> | 2012-03-06 17:24:21 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2012-03-06 17:24:21 +0000 |
commit | b672c45b729905c78899e5241b96d6679e95a424 (patch) | |
tree | 82296a8e680568c735e3d604a2f049c8f4e09b4b /epan/dissectors/packet-ieee17221.c | |
parent | 1ffd9e60bc1433bd33c26f934282169bd0b8b70c (diff) |
Use tvb_new_subset_remaining(...) rather than tvb_new_subset(...,-1,-1).
svn path=/trunk/; revision=41376
Diffstat (limited to 'epan/dissectors/packet-ieee17221.c')
-rw-r--r-- | epan/dissectors/packet-ieee17221.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ieee17221.c b/epan/dissectors/packet-ieee17221.c index 7d01eddc53..d17f0c57ce 100644 --- a/epan/dissectors/packet-ieee17221.c +++ b/epan/dissectors/packet-ieee17221.c @@ -3236,7 +3236,7 @@ dissect_17221_aecp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *aecp_tree) } else { - next_tvb = tvb_new_subset(tvb, 28, -1, -1); + next_tvb = tvb_new_subset_remaining(tvb, 28); dissect_17221_aem(next_tvb, pinfo, aecp_tree); } break; @@ -3247,7 +3247,7 @@ dissect_17221_aecp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *aecp_tree) /* on command descriptor is value to write * on response descriptor is command value if successful * or old value if unsuccessful */ - next_tvb = tvb_new_subset(tvb, 28, -1, -1); + next_tvb = tvb_new_subset_remaining(tvb, 28); dissect_17221_aem(next_tvb, pinfo, aecp_tree); break; case AECP_COMMAND_ACQUIRE_ENTITY: |