aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sync.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2012-05-21 14:02:40 +0000
committerBill Meier <wmeier@newsguy.com>2012-05-21 14:02:40 +0000
commit6718bfd0471cbb723c7e4be2714710dffc4b0352 (patch)
tree30ee3d2425dc27224f2a2ffc8e6c489da7dd3d2f /epan/dissectors/packet-sync.c
parentb4519deb91998229a3cc1704e71469f43576650e (diff)
From Evan Huus: Unused Prefs registration;
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7273 From me: whitespace cleanup; svn path=/trunk/; revision=42744
Diffstat (limited to 'epan/dissectors/packet-sync.c')
-rw-r--r--epan/dissectors/packet-sync.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/epan/dissectors/packet-sync.c b/epan/dissectors/packet-sync.c
index dd4ac4bb39..2fdf380ecb 100644
--- a/epan/dissectors/packet-sync.c
+++ b/epan/dissectors/packet-sync.c
@@ -30,7 +30,6 @@
#include <glib.h>
#include <epan/packet.h>
-#include <epan/prefs.h>
#define SYNC_PORT 5000
@@ -74,11 +73,11 @@ dissect_sync(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_item *ti;
proto_tree *sync_tree;
- guint8 type, spare;
- guint16 packet_nr, packet_len1, packet_len2;
- guint32 timestamp, total_nr_of_packet;
- int offset = 0;
- tvbuff_t *next_tvb;
+ guint8 type, spare;
+ guint16 packet_nr, packet_len1, packet_len2;
+ guint32 timestamp, total_nr_of_packet;
+ int offset = 0;
+ tvbuff_t *next_tvb;
type = tvb_get_guint8(tvb, offset) >> 4;
spare = tvb_get_guint8(tvb, offset) & 0x0F;
@@ -223,8 +222,6 @@ dissect_sync(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
void
proto_register_sync(void)
{
- module_t *sync_module;
-
static hf_register_info hf_sync[] = {
{ &hf_sync_type,
{ "PDU Type", "sync.type",
@@ -287,8 +284,6 @@ proto_register_sync(void)
proto_register_field_array(proto_sync, hf_sync, array_length(hf_sync));
proto_register_subtree_array(ett_sync_array, array_length(ett_sync_array));
- sync_module = prefs_register_protocol(proto_sync, proto_reg_handoff_sync);
-
new_register_dissector("sync", dissect_sync, proto_sync);
}
@@ -296,7 +291,7 @@ void
proto_reg_handoff_sync(void)
{
sync_handle = new_create_dissector_handle(dissect_sync, proto_sync);
- ip_handle = find_dissector("ip");
+ ip_handle = find_dissector("ip");
dissector_add_handle("udp.port", sync_handle);
}