aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dlsw.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-12-26 21:21:00 +0000
committerGuy Harris <guy@alum.mit.edu>2001-12-26 21:21:00 +0000
commitdfa2f0eb06b119871a69947c48e5cb3e0fb7e5f9 (patch)
tree88b867427db40f29cfdff956929906092495edf9 /packet-dlsw.c
parentc0ff48d6d003d03779307b8a105f202715654a16 (diff)
There's no need for the DLSw handle variable to be static; make it local
to "proto_reg_handoff_dlsw()". svn path=/trunk/; revision=4450
Diffstat (limited to 'packet-dlsw.c')
-rw-r--r--packet-dlsw.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/packet-dlsw.c b/packet-dlsw.c
index 3e797d8690..baf4bfd816 100644
--- a/packet-dlsw.c
+++ b/packet-dlsw.c
@@ -2,7 +2,7 @@
* Routines for DLSw packet dissection (Data Link Switching)
* Copyright 2001, Paul Ionescu <paul@acorp.ro>
*
- * $Id: packet-dlsw.c,v 1.1 2001/12/26 21:17:49 guy Exp $
+ * $Id: packet-dlsw.c,v 1.2 2001/12/26 21:21:00 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -198,8 +198,6 @@ static const value_string dlsw_refuse_vals[] = {
#define DLSW_INFO_HEADER 16
#define DLSW_CMD_HEADER 72
-static dissector_handle_t dlsw_handle;
-
static void
dissect_dlsw_capex(tvbuff_t *tvb, proto_tree *tree, proto_tree *ti);
@@ -431,12 +429,13 @@ proto_register_dlsw(void)
proto_dlsw = proto_register_protocol("Data Link SWitching", "DLSw", "dlsw");
/* proto_register_field_array(proto_dlsw, hf, array_length(hf)); */
proto_register_subtree_array(ett, array_length(ett));
- dlsw_handle = find_dissector("dlsw");
}
void
proto_reg_handoff_dlsw(void)
{
+ dissector_handle_t dlsw_handle;
+
dlsw_handle = create_dissector_handle(dissect_dlsw, proto_dlsw);
dissector_add("tcp.port", TCP_PORT_DLSW, dlsw_handle);