diff options
author | Bill Meier <wmeier@newsguy.com> | 2012-02-20 22:20:30 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2012-02-20 22:20:30 +0000 |
commit | 277ffa56079bec734129cf34af0c6c919fa0d0af (patch) | |
tree | ad9d07a449bdcb0ccb068ff223d7ff0424edc817 /epan/dissectors/packet-bzr.c | |
parent | 01154ebca48a1d5c977ab1cadcc45951a15966e0 (diff) |
Fix 'variable set but then unused'; Do some whitespace cleanup.
svn path=/trunk/; revision=41089
Diffstat (limited to 'epan/dissectors/packet-bzr.c')
-rw-r--r-- | epan/dissectors/packet-bzr.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/epan/dissectors/packet-bzr.c b/epan/dissectors/packet-bzr.c index 9093072e89..e97771b48d 100644 --- a/epan/dissectors/packet-bzr.c +++ b/epan/dissectors/packet-bzr.c @@ -53,8 +53,8 @@ static gint hf_bzr_result = -1; static gint hf_bzr_packet_protocol_version = -1; static gint hf_bzr_packet_kind = -1; -#define REQUEST_VERSION_TWO "bzr request 2\n" -#define RESPONSE_VERSION_TWO "bzr response 2\n" +#define REQUEST_VERSION_TWO "bzr request 2\n" +#define RESPONSE_VERSION_TWO "bzr response 2\n" #define MESSAGE_VERSION_THREE "bzr message 3 (bzr 1.6)\n" #define TCP_PORT_BZR 4155 @@ -181,8 +181,7 @@ dissect_body(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree) while (tvb_reported_length_remaining(tvb, offset) > 0) { cmd = tvb_get_guint8(tvb, offset); - proto_tree_add_item(tree, hf_bzr_packet_kind, tvb, offset, 1, - ENC_NA); + proto_tree_add_item(tree, hf_bzr_packet_kind, tvb, offset, 1, ENC_NA); offset += 1; switch (cmd) { @@ -227,13 +226,13 @@ dissect_bzr_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } offset += dissect_prefixed_bencode(tvb, offset, pinfo, bzr_tree); - offset += dissect_body(tvb, offset, pinfo, bzr_tree); + /*offset +=*/ dissect_body(tvb, offset, pinfo, bzr_tree); } static void dissect_bzr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { - gint offset = 0, pdu_len; + gint offset = 0, pdu_len; tvbuff_t *next_tvb; col_set_str(pinfo->cinfo, COL_PROTOCOL, "BZR"); |