aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pw-oam.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-12-01 17:44:51 +0000
committerEvan Huus <eapache@gmail.com>2012-12-01 17:44:51 +0000
commitb14c53a2a9896ccc8e815e92d6cf37387884d777 (patch)
tree278dfefd40d93f01f2e9f500c9fafe83bdb94ec0 /epan/dissectors/packet-pw-oam.c
parent2b70657769988e7b9a691720a3e967b03ec772a3 (diff)
Fix some checkAPI warnings and remove some unnecessary variable
initializations. Also add an $Id$ tag which I somehow missed despite adding the actual SVN property. svn path=/trunk/; revision=46313
Diffstat (limited to 'epan/dissectors/packet-pw-oam.c')
-rw-r--r--epan/dissectors/packet-pw-oam.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/epan/dissectors/packet-pw-oam.c b/epan/dissectors/packet-pw-oam.c
index 4c4f521261..96ecbf5c08 100644
--- a/epan/dissectors/packet-pw-oam.c
+++ b/epan/dissectors/packet-pw-oam.c
@@ -5,6 +5,8 @@
* (c) Copyright 2012, Krishnamurthy Mayya <krishnamurthymayya@gmail.com>
* Nikitha Malgi <nikitha01@gmail.com>
*
+* $Id$
+*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
@@ -56,10 +58,10 @@ static const value_string pw_oam_code[] = {
void
dissect_pw_status_tlv (tvbuff_t *tvb, proto_tree *tree, gint offset)
{
- proto_item *ti = NULL;
- proto_tree *pw_oam_tlv_tree = NULL;
+ proto_item *ti;
+ proto_tree *pw_oam_tlv_tree;
- guint reserved = 0;
+ guint reserved;
ti = proto_tree_add_protocol_format (tree, proto_pw_oam, tvb, offset, 8,
"Pseudo-Wire Status TLV");
@@ -158,7 +160,7 @@ proto_register_pw_oam(void)
{&hf_pw_oam_flags,
{"Flags", "pw_oam.flags", FT_UINT8,
- BASE_HEX, NULL, 0x0000, "Flags", HFILL }},
+ BASE_HEX, NULL, 0x0000, "OAM Flags", HFILL }},
{&hf_pw_oam_flags_a,
{"Acknowledgement", "pw_oam.flags_a",
@@ -176,7 +178,7 @@ proto_register_pw_oam(void)
},
{&hf_pw_oam_tlv_len,
- {"TLV Length ", "pw_oam.tlv-len",
+ {"TLV Length", "pw_oam.tlv-len",
FT_UINT16, BASE_HEX, NULL, 0x00, NULL, HFILL}
},