diff options
author | Michael Mann <mmann78@netscape.net> | 2017-05-24 09:14:18 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-05-25 11:39:21 +0000 |
commit | dd73765549b58589fad7a23e14f49712bb6583b2 (patch) | |
tree | 96f15a944f3fa35a198aafeff54258d83a0cc6c6 /epan/dissectors/asn1/lte-rrc/lte-rrc.cnf | |
parent | 7ca84f3c90dacf5c955ad76c51a8bcedfee52127 (diff) | |
download | wireshark-dd73765549b58589fad7a23e14f49712bb6583b2.tar.gz |
packet-lte-rrc.c: Create temporary variables for some proto_tree_add_uint calculations.
Pacify checkAPIs.pl
Change-Id: I1801bd92aeb34e3e3240b15cef024718062852d7
Reviewed-on: https://code.wireshark.org/review/21744
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/asn1/lte-rrc/lte-rrc.cnf')
-rw-r--r-- | epan/dissectors/asn1/lte-rrc/lte-rrc.cnf | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/epan/dissectors/asn1/lte-rrc/lte-rrc.cnf b/epan/dissectors/asn1/lte-rrc/lte-rrc.cnf index f807d0a4b0..034c5bed29 100644 --- a/epan/dissectors/asn1/lte-rrc/lte-rrc.cnf +++ b/epan/dissectors/asn1/lte-rrc/lte-rrc.cnf @@ -565,7 +565,8 @@ NeighCellConfig TYPE=FT_UINT8 DISPLAY=BASE_DEC STRINGS=VALS(lte_rrc_neighCellCon #.FN_FTR NeighCellConfig if (neigh_cell_config_tvb) { - actx->created_item = proto_tree_add_uint(tree, hf_index, neigh_cell_config_tvb, 0, 1, tvb_get_bits8(neigh_cell_config_tvb, 0, 2)); + guint bitvalue = tvb_get_bits8(neigh_cell_config_tvb, 0, 2); + actx->created_item = proto_tree_add_uint(tree, hf_index, neigh_cell_config_tvb, 0, 1, bitvalue); } #.FN_BODY LocationInfo-r10/locationCoordinates-r10/ellipsoid-Point-r10 VAL_PTR = &ellipsoid_point_tvb @@ -862,7 +863,8 @@ SystemInformationBlockType16-r11/timeInfo-r11/dayLightSavingTime-r11 TYPE=FT_UIN #.FN_FTR SystemInformationBlockType16-r11/timeInfo-r11/dayLightSavingTime-r11 if (daylight_saving_time_tvb) { - actx->created_item = proto_tree_add_uint(tree, hf_index, daylight_saving_time_tvb, 0, 1, tvb_get_bits8(daylight_saving_time_tvb, 0, 2)); + guint bitvalue = tvb_get_bits8(daylight_saving_time_tvb, 0, 2); + actx->created_item = proto_tree_add_uint(tree, hf_index, daylight_saving_time_tvb, 0, 1, bitvalue); } #.TYPE_ATTR @@ -925,7 +927,8 @@ LogMeasInfo-r10/relativeTimeStamp-r10 DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS= tvbuff_t *n_r12_tvb = NULL; %(DEFAULT_BODY)s if (n_r12_tvb) { - actx->created_item = proto_tree_add_uint(tree, hf_index, n_r12_tvb, 0, 1, tvb_get_bits8(n_r12_tvb, 0, 3)); + guint bitvalue = tvb_get_bits8(n_r12_tvb, 0, 3); + actx->created_item = proto_tree_add_uint(tree, hf_index, n_r12_tvb, 0, 1, bitvalue); } #.TYPE_ATTR |