diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-11-04 11:27:34 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-11-04 11:27:34 +0000 |
commit | ca8e499694c097d855a3ab597ec5f9f6830a1154 (patch) | |
tree | bd4a2af59628b100d4b88133350b1af63a17dac5 | |
parent | 51668ba0cab971a1a94d3f4c9939e01adf49b8b9 (diff) |
Removed unused assignments.
svn path=/trunk/; revision=34776
-rw-r--r-- | epan/dissectors/packet-git.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-git.c b/epan/dissectors/packet-git.c index 37c60de6ee..8f6a704106 100644 --- a/epan/dissectors/packet-git.c +++ b/epan/dissectors/packet-git.c @@ -82,7 +82,7 @@ static void dissect_git_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { proto_tree *git_tree; - proto_item *ti, *ti1, *ti2; + proto_item *ti; int offset = 0; guint16 plen; @@ -97,7 +97,7 @@ dissect_git_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) return; if (plen == 0) { - ti1 = proto_tree_add_uint(git_tree, hf_git_packet_terminator, tvb, offset, + proto_tree_add_uint(git_tree, hf_git_packet_terminator, tvb, offset, 4, plen); return; } @@ -105,11 +105,11 @@ dissect_git_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (git_tree) { tvbuff_t *subtvb; - ti1 = proto_tree_add_uint(git_tree, hf_git_packet_len, tvb, offset, + proto_tree_add_uint(git_tree, hf_git_packet_len, tvb, offset, 4, plen); subtvb = tvb_new_subset(tvb, offset+4, plen-4, plen-4); - ti2 = proto_tree_add_item(git_tree, hf_git_packet_data, tvb, offset+4, + proto_tree_add_item(git_tree, hf_git_packet_data, subtvb, offset+4, plen-4, FALSE); } } |