diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-10-19 21:55:08 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-10-19 21:55:08 +0000 |
commit | 3f5cf478f4fafeb78186eea599f8c60d71acd0b0 (patch) | |
tree | 3da30010c9df2fff0051e28a2133423cac275eb3 /epan/dissectors/packet-bthci_evt.c | |
parent | 8d21b886f7dd40bdfae969e079afadea6259ca49 (diff) |
Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=39481
Diffstat (limited to 'epan/dissectors/packet-bthci_evt.c')
-rw-r--r-- | epan/dissectors/packet-bthci_evt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bthci_evt.c b/epan/dissectors/packet-bthci_evt.c index d29ff5da65..9dd780f02e 100644 --- a/epan/dissectors/packet-bthci_evt.c +++ b/epan/dissectors/packet-bthci_evt.c @@ -2302,7 +2302,7 @@ dissect_bthci_evt_inq_result(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, /* Code to actually dissect the packets */ -static void +static int dissect_bthci_evt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { proto_item *ti; @@ -2538,10 +2538,12 @@ dissect_bthci_evt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) default: proto_tree_add_item(bthci_evt_tree, hf_bthci_evt_params, tvb, 2, -1, ENC_NA); + offset+=tvb_length_remaining(tvb, offset); break; } } +return offset; } @@ -3520,7 +3522,7 @@ proto_register_bthci_evt(void) proto_bthci_evt = proto_register_protocol("Bluetooth HCI Event", "HCI_EVT", "bthci_evt"); - register_dissector("bthci_evt", dissect_bthci_evt, proto_bthci_evt); + new_register_dissector("bthci_evt", dissect_bthci_evt, proto_bthci_evt); |