diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2006-12-18 23:12:50 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2006-12-18 23:12:50 +0000 |
commit | e4dc8bd0fb9689b7209e85ef82eb6fd6db1e8ce4 (patch) | |
tree | 72229d4ef98d94e5d472645a165b0c5b212d9599 /epan/dissectors/packet-isis-lsp.c | |
parent | 6527f7110484792438bc9903c6b5ebd2ee26ee09 (diff) | |
download | wireshark-e4dc8bd0fb9689b7209e85ef82eb6fd6db1e8ce4.tar.gz wireshark-e4dc8bd0fb9689b7209e85ef82eb6fd6db1e8ce4.tar.bz2 wireshark-e4dc8bd0fb9689b7209e85ef82eb6fd6db1e8ce4.zip |
From Sebastien Tandel:
a little patch against revision 20088 in packet-isis-lsp.c for the
following :
- hf_isis_lsp_remaining_life declared but unused
- replacing a proto_tree_add_uint useless with proto_tree_add_item
svn path=/trunk/; revision=20148
Diffstat (limited to 'epan/dissectors/packet-isis-lsp.c')
-rw-r--r-- | epan/dissectors/packet-isis-lsp.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/epan/dissectors/packet-isis-lsp.c b/epan/dissectors/packet-isis-lsp.c index c850bd6e18..1faacf9c99 100644 --- a/epan/dissectors/packet-isis-lsp.c +++ b/epan/dissectors/packet-isis-lsp.c @@ -1769,9 +1769,8 @@ isis_dissect_isis_lsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int o offset += 2; if (tree) { - proto_tree_add_text(lsp_tree, tvb, offset, 2, - "Remaining Lifetime: %us", - tvb_get_ntohs(tvb, offset)); + proto_tree_add_item(lsp_tree, hf_isis_lsp_remaining_life, + tvb, offset, 2, FALSE); } offset += 2; offset_checksum = offset; @@ -1789,9 +1788,8 @@ isis_dissect_isis_lsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int o offset += id_length + 2; if (tree) { - proto_tree_add_uint(lsp_tree, hf_isis_lsp_sequence_number, tvb, - offset, 4, - tvb_get_ntohl(tvb, offset)); + proto_tree_add_item(lsp_tree, hf_isis_lsp_sequence_number, + tvb, offset, 4, FALSE); } if (check_col(pinfo->cinfo, COL_INFO)) { col_append_fstr(pinfo->cinfo, COL_INFO, ", Sequence: 0x%08x, Lifetime: %5us", |