diff options
author | Bill Meier <wmeier@newsguy.com> | 2012-07-16 12:34:33 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2012-07-16 12:34:33 +0000 |
commit | f41a04b7ab86337be4d88f7aff1128c4d1d673d0 (patch) | |
tree | ec4a4daae9d8e2fc515200a03885e0a83e348e19 /epan/dissectors/packet-dmx-test.c | |
parent | 1e951048607f85d5ff7b66333c1d292e69bd16b5 (diff) |
Minor cleanup, including:
- Remove unneeded #includes;
- Simplify code slightly;
- Remove unused ett variable and related;
- Remove empty proto_reg_handoff...() functions;
- Fix a few cases of "set but unused".
- Do some whitespace changes.
svn path=/trunk/; revision=43748
Diffstat (limited to 'epan/dissectors/packet-dmx-test.c')
-rw-r--r-- | epan/dissectors/packet-dmx-test.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/epan/dissectors/packet-dmx-test.c b/epan/dissectors/packet-dmx-test.c index 48f5fbb768..8ad40d1531 100644 --- a/epan/dissectors/packet-dmx-test.c +++ b/epan/dissectors/packet-dmx-test.c @@ -40,19 +40,10 @@ # include "config.h" #endif -#include <stdlib.h> -#include <ctype.h> -#include <time.h> -#include <string.h> #include <epan/packet.h> -#include <epan/addr_resolv.h> -#include <epan/prefs.h> -#include <epan/strutil.h> -#define DMX_TEST_PACKET_SIZE 512 -#define DMX_TEST_VALUE 0x55 - -void proto_reg_handoff_dmx_test(void); +#define DMX_TEST_PACKET_SIZE 512 +#define DMX_TEST_VALUE 0x55 static int proto_dmx_test = -1; @@ -69,9 +60,9 @@ dissect_dmx_test(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_clear(pinfo->cinfo, COL_INFO); if (tree != NULL) { - unsigned offset = 0; - unsigned size, i, test_data_is_ok; - proto_tree* test_data_tree; + unsigned offset = 0; + unsigned size, i, test_data_is_ok; + proto_tree *test_data_tree; proto_item *item; proto_tree *ti = proto_tree_add_item(tree, proto_dmx_test, tvb, @@ -151,8 +142,3 @@ proto_register_dmx_test(void) proto_register_subtree_array(ett, array_length(ett)); register_dissector("dmx-test", dissect_dmx_test, proto_dmx_test); } - -void -proto_reg_handoff_dmx_test(void) -{ -} |