aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-moldudp.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2012-08-16 13:17:48 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2012-08-16 13:17:48 +0000
commita9896e3c12221c112b569bc12a377738da5a091a (patch)
tree299cb97ffa5bcd174151ac8a4ff6e58c3015ce93 /epan/dissectors/packet-moldudp.c
parent95e360b3b0244ec080f7712fd0c55f34b1c49dd2 (diff)
'tab-width/tabstop/tabSize' in editor modelines should really always be 8;
Also: - In one case #include <epan/prefs.h> not needed; - Do some minor whitespace reformatting. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44537 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-moldudp.c')
-rw-r--r--epan/dissectors/packet-moldudp.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/epan/dissectors/packet-moldudp.c b/epan/dissectors/packet-moldudp.c
index b480aa01df..206d2351c5 100644
--- a/epan/dissectors/packet-moldudp.c
+++ b/epan/dissectors/packet-moldudp.c
@@ -68,8 +68,8 @@ dissect_moldudp_msgblk(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
{
proto_item *ti;
proto_tree *blk_tree;
- guint16 msglen, real_msglen, whole_len;
- guint remaining;
+ guint16 msglen, real_msglen, whole_len;
+ guint remaining;
if (tvb_reported_length(tvb) - offset < MOLDUDP_MSGLEN_LEN)
return 0;
@@ -123,9 +123,9 @@ dissect_moldudp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_item *ti;
proto_tree *moldudp_tree;
- guint offset = 0;
- guint16 count, real_count = 0;
- guint32 sequence;
+ guint offset = 0;
+ guint16 count, real_count = 0;
+ guint32 sequence;
/* Check that there's enough data */
if (tvb_reported_length(tvb) < (MOLDUDP_SESSION_LEN +
@@ -241,7 +241,7 @@ proto_register_moldudp(void)
moldudp_module = prefs_register_protocol(proto_moldudp,
proto_reg_handoff_moldudp);
- /* Register a sample port preference */
+ /* Register a port preference */
prefs_register_uint_preference(moldudp_module, "udp.port", "MoldUDP UDP Port",
"MoldUDP UDP port to capture on.",
10, &pf_moldudp_port);
@@ -251,12 +251,11 @@ proto_register_moldudp(void)
void
proto_reg_handoff_moldudp(void)
{
- static gboolean initialized = FALSE;
+ static gboolean initialized = FALSE;
static dissector_handle_t moldudp_handle;
- static int currentPort;
+ static int currentPort;
if (!initialized) {
-
moldudp_handle = new_create_dissector_handle(dissect_moldudp,
proto_moldudp);
initialized = TRUE;
@@ -276,10 +275,10 @@ proto_reg_handoff_moldudp(void)
*
* Local variables:
* c-basic-offset: 4
- * tab-width: 4
+ * tab-width: 8
* indent-tabs-mode: nil
* End:
*
- * vi: set shiftwidth=4 tabstop=4 expandtab:
- * :indentSize=4:tabSize=4:noTabs=true:
+ * vi: set shiftwidth=4 tabstop=8 expandtab:
+ * :indentSize=4:tabSize=8:noTabs=true:
*/