aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ncp-nmas.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2009-05-05 19:33:46 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2009-05-05 19:33:46 +0000
commit69031bd4522167fa5471c3c6c112d3ad62ad008d (patch)
treeaf534cbbed5dde4b3fe77a21bc46c00b4a813965 /epan/dissectors/packet-ncp-nmas.c
parentf9556d17eaded38032163321846ec2cac113a87c (diff)
The expert_item pointers and expert_status values don't need to be
static; make them auto variables. Make sure that expert information is added outside "if (tree) { }", so it gets added even if we're not building the protocol tree. Clean up white space. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28281 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ncp-nmas.c')
-rw-r--r--epan/dissectors/packet-ncp-nmas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ncp-nmas.c b/epan/dissectors/packet-ncp-nmas.c
index dfc66f527f..689b8d6def 100644
--- a/epan/dissectors/packet-ncp-nmas.c
+++ b/epan/dissectors/packet-ncp-nmas.c
@@ -68,8 +68,6 @@ static int hf_enc_data = -1;
static int hf_reply_buffer_size = -1;
static int hf_encrypt_error = -1;
-static proto_item *expert_item = NULL;
-
static const value_string nmas_func_enum[] = {
{ 0x01, "Ping" },
{ 0x02, "Fragment" },
@@ -488,6 +486,8 @@ dissect_nmas_reply(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ncp_tree, guin
guint32 return_code=0, encrypt_error=0;
proto_tree *atree;
proto_item *aitem;
+ proto_item *expert_item;
+
foffset = 8;
if (request_value) {