diff options
Diffstat (limited to 'epan/dissectors/packet-lge_monitor.c')
-rw-r--r-- | epan/dissectors/packet-lge_monitor.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/epan/dissectors/packet-lge_monitor.c b/epan/dissectors/packet-lge_monitor.c index f4c885d64b..f96246e7ba 100644 --- a/epan/dissectors/packet-lge_monitor.c +++ b/epan/dissectors/packet-lge_monitor.c @@ -7,17 +7,17 @@ * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -29,13 +29,9 @@ # include "config.h" #endif -#include <stdlib.h> - #include <glib.h> #include <epan/packet.h> -#include <epan/proto.h> - #include <epan/prefs.h> @@ -149,7 +145,7 @@ proto_reg_handoff_lge_monitor(void) void proto_register_lge_monitor(void) -{ +{ module_t *lge_monitor_module; @@ -157,17 +153,17 @@ proto_register_lge_monitor(void) static hf_register_info hf[] = { { &hf_lge_monitor_dir, { "Direction", "lge_monitor.dir", - FT_UINT32, BASE_DEC, VALS(lge_monitor_dir_vals), 0x0, + FT_UINT32, BASE_DEC, VALS(lge_monitor_dir_vals), 0x0, NULL, HFILL } }, { &hf_lge_monitor_prot, { "Protocol Identifier", "lge_monitor.prot", - FT_UINT32, BASE_DEC, VALS(lge_monitor_prot_vals), 0x0, + FT_UINT32, BASE_DEC, VALS(lge_monitor_prot_vals), 0x0, NULL, HFILL } }, { &hf_lge_monitor_length, { "Payload Length", "lge_monitor.length", - FT_UINT32, BASE_DEC, NULL, 0x0, + FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, }; @@ -185,7 +181,7 @@ proto_register_lge_monitor(void) proto_register_subtree_array(ett, array_length(ett)); /* Register a configuration option for port */ - + lge_monitor_module = prefs_register_protocol(proto_lge_monitor, proto_reg_handoff_lge_monitor); prefs_register_uint_preference(lge_monitor_module, "udp.port", |