diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-04-10 10:52:32 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-04-10 17:53:05 +0000 |
commit | b3c51deb2455c2ee07781d1808a02646f3395a35 (patch) | |
tree | ae8d9d32b17acf82933dd03c085186cae65daa33 /epan/tvbuff.h | |
parent | b67a10c9ea16da59959c2cd7acbefb188891cca0 (diff) |
Rename the last argument to tvb_new_subset_length().
In tvb_new_subset_length_caplen(), the captured length argument is
backing_length and the reported length argument is reported_length. The
length argument to tvb_new_subset_length() is a reported length, not a
captured length, so call it reported_length, not backing_length.
Change-Id: Ibfb30e15bdd885d3c0fd66e2b4b07c4a45327f14
Reviewed-on: https://code.wireshark.org/review/26863
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r-- | epan/tvbuff.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h index 145ad3b28e..81e6a9bf78 100644 --- a/epan/tvbuff.h +++ b/epan/tvbuff.h @@ -180,10 +180,10 @@ WS_DLL_PUBLIC tvbuff_t *tvb_new_subset_length_caplen(tvbuff_t *backing, /** * Similar to tvb_new_subset_length_caplen() but with captured length calculated * to fit within the existing captured length and the specified - * backing length (which is used as the reported length). + * reported length. * Can throw ReportedBoundsError. */ WS_DLL_PUBLIC tvbuff_t *tvb_new_subset_length(tvbuff_t *backing, - const gint backing_offset, const gint backing_length); + const gint backing_offset, const gint reported_length); /** Similar to tvb_new_subset_length_caplen() but with backing_length and reported_length set * to -1. Can throw ReportedBoundsError. */ |