diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-05-05 19:33:46 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-05-05 19:33:46 +0000 |
commit | cfe974aadd33da87e3f94c1226ab6de0f847d920 (patch) | |
tree | af534cbbed5dde4b3fe77a21bc46c00b4a813965 /epan/dissectors/packet-ncp-nmas.c | |
parent | 6c46249150da295635cb09167585860d8669206f (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.
svn path=/trunk/; revision=28281
Diffstat (limited to 'epan/dissectors/packet-ncp-nmas.c')
-rw-r--r-- | epan/dissectors/packet-ncp-nmas.c | 4 |
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) { |