diff options
author | Gerald Combs <gerald@wireshark.org> | 2009-07-30 16:17:46 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2009-07-30 16:17:46 +0000 |
commit | e951661130a51a0d665567241a0f044cc8c8a7b3 (patch) | |
tree | 16f049fb409cc40292977d42be080eace630707d /epan/dissectors/packet-olsr.c | |
parent | 0cceb40317eb1e0695d2125f1b29e16c8811dd6e (diff) |
Remove some unused variable assignments.
svn path=/trunk/; revision=29243
Diffstat (limited to 'epan/dissectors/packet-olsr.c')
-rw-r--r-- | epan/dissectors/packet-olsr.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-olsr.c b/epan/dissectors/packet-olsr.c index af418f5e7e..daf93596c0 100644 --- a/epan/dissectors/packet-olsr.c +++ b/epan/dissectors/packet-olsr.c @@ -595,7 +595,7 @@ static int dissect_olsr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { proto_tree *message_tree; if (packet_len - offset < 4) { - message_item = proto_tree_add_bytes_format(olsr_tree, hf_olsr_message, tvb, offset, packet_len - offset, + proto_tree_add_bytes_format(olsr_tree, hf_olsr_message, tvb, offset, packet_len - offset, tvb_get_ptr(tvb, offset, packet_len - offset), "Message too short !"); break; } @@ -651,36 +651,36 @@ static int dissect_olsr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { if (offset < message_end) { /* --------------Dissecting TC message--------------------- */ if (message_type == TC) { - offset = dissect_olsr_tc(tvb, pinfo, message_tree, offset, message_end); + dissect_olsr_tc(tvb, pinfo, message_tree, offset, message_end); } /* -------------Dissect HELLO message----------------------- */ else if (message_type == HELLO) { - offset = dissect_olsr_hello(tvb, pinfo, message_tree, offset, message_end, &handle_olsr_hello_rfc); + dissect_olsr_hello(tvb, pinfo, message_tree, offset, message_end, &handle_olsr_hello_rfc); } /*---------------------------------Dissect MID Message----------------------------------*/ else if (message_type == MID) { - offset = dissect_olsr_mid(tvb, pinfo, message_tree, offset, message_end); + dissect_olsr_mid(tvb, pinfo, message_tree, offset, message_end); } /*-----------------------------Dissect HNA Message--------------------------------*/ else if (message_type == HNA) { - offset = dissect_olsr_hna(tvb, pinfo, message_tree, offset, message_end); + dissect_olsr_hna(tvb, pinfo, message_tree, offset, message_end); } /*-----------------------------Dissect Olsr.org Hello Message--------------------------------*/ else if (global_olsr_olsrorg && message_type == OLSR_ORG_LQ_HELLO) { - offset = dissect_olsr_hello(tvb, pinfo, message_tree, offset, message_end, &handle_olsr_hello_olsrorg); + dissect_olsr_hello(tvb, pinfo, message_tree, offset, message_end, &handle_olsr_hello_olsrorg); } /*-----------------------------Dissect Olsr.org TC Message--------------------------------*/ else if (global_olsr_olsrorg && message_type == OLSR_ORG_LQ_TC) { - offset = dissect_olsrorg_lq_tc(tvb, pinfo, message_tree, offset, message_end); + dissect_olsrorg_lq_tc(tvb, pinfo, message_tree, offset, message_end); } /*-----------------------------Dissect Olsr.org NS Message--------------------------------*/ else if (global_olsr_olsrorg && message_type == OLSR_ORG_NAMESERVICE) { - offset = dissect_olsrorg_nameservice(tvb, pinfo, message_tree, offset, message_end); + dissect_olsrorg_nameservice(tvb, pinfo, message_tree, offset, message_end); } /*-----------------------Dissect NRL OLSR TC Message-------------------------------------*/ else if (global_olsr_nrlolsr && message_type == NRLOLSR_TC_EXTRA) { - offset = dissect_nrlolsr_tc(tvb, pinfo, message_tree, offset, message_end); + dissect_nrlolsr_tc(tvb, pinfo, message_tree, offset, message_end); } /*-----------------------------Undefined message types-----------------------------*/ |