aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dmx-sip.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2012-07-16 12:34:33 +0000
committerBill Meier <wmeier@newsguy.com>2012-07-16 12:34:33 +0000
commitf41a04b7ab86337be4d88f7aff1128c4d1d673d0 (patch)
treeec4a4daae9d8e2fc515200a03885e0a83e348e19 /epan/dissectors/packet-dmx-sip.c
parent1e951048607f85d5ff7b66333c1d292e69bd16b5 (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-sip.c')
-rw-r--r--epan/dissectors/packet-dmx-sip.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/epan/dissectors/packet-dmx-sip.c b/epan/dissectors/packet-dmx-sip.c
index 0be11d0fda..3e354c95ff 100644
--- a/epan/dissectors/packet-dmx-sip.c
+++ b/epan/dissectors/packet-dmx-sip.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_SC_SIP 0xCF
-void proto_reg_handoff_dmx_sip(void);
-
static int proto_dmx_sip = -1;
static int hf_dmx_sip_byte_count = -1;
@@ -80,8 +71,8 @@ static int ett_dmx_sip = -1;
static guint8
dmx_sip_checksum(tvbuff_t *tvb, unsigned length)
{
- guint8 sum = DMX_SC_SIP;
- unsigned i;
+ guint8 sum = DMX_SC_SIP;
+ unsigned i;
for (i = 0; i < length; i++)
sum += tvb_get_guint8(tvb, i);
return sum;
@@ -94,9 +85,9 @@ dissect_dmx_sip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
col_clear(pinfo->cinfo, COL_INFO);
if (tree != NULL) {
- unsigned offset = 0;
- unsigned byte_count;
- unsigned checksum, checksum_shouldbe;
+ unsigned offset = 0;
+ unsigned byte_count;
+ unsigned checksum, checksum_shouldbe;
proto_item *item;
proto_tree *checksum_tree;
@@ -314,7 +305,3 @@ proto_register_dmx_sip(void)
register_dissector("dmx-sip", dissect_dmx_sip, proto_dmx_sip);
}
-void
-proto_reg_handoff_dmx_sip(void)
-{
-}