From 3fe0a82016a1d26dde19066fe872b3705f19ea00 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Thu, 28 Apr 2011 15:18:54 +0000 Subject: Remove an unneeded forward declaration (fixes compiler error); Move a global variable to be local to proto_reg-handoff... svn path=/trunk/; revision=36938 --- epan/dissectors/packet-mux27010.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-mux27010.c') diff --git a/epan/dissectors/packet-mux27010.c b/epan/dissectors/packet-mux27010.c index f92ec754d5..73662a7a43 100644 --- a/epan/dissectors/packet-mux27010.c +++ b/epan/dissectors/packet-mux27010.c @@ -102,9 +102,6 @@ static int proto_mux27010 = -1; /* Handles of subdissectors */ static dissector_handle_t ppp_handle; -static dissector_handle_t mux27010_handle; -void dissect_mux27010(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree); - static const value_string packettypenames[] = { { 0, "TEXT" }, { 1, "SOMETHING_ELSE" }, @@ -1371,6 +1368,8 @@ proto_register_mux27010 (void) void proto_reg_handoff_mux27010(void) { + dissector_handle_t mux27010_handle; + /*Initialization of dissector*/ mux27010_handle = create_dissector_handle(dissect_mux27010, proto_mux27010); dissector_add_uint("wtap_encap", WTAP_ENCAP_MUX27010, mux27010_handle); -- cgit v1.2.3