aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-prp.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2012-01-19 17:42:28 +0000
committerBill Meier <wmeier@newsguy.com>2012-01-19 17:42:28 +0000
commit8e4aab0ed8cf7ec642435d09a65ea05ee47f3705 (patch)
tree448a6dbabfe043b420c75117c6e68c668eca4974 /epan/dissectors/packet-prp.c
parentcffa41f052fabe2e97ab870b8300a3df7a4f07ec (diff)
Localize a global variable; Do minor reformatting.
svn path=/trunk/; revision=40585
Diffstat (limited to 'epan/dissectors/packet-prp.c')
-rw-r--r--epan/dissectors/packet-prp.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/epan/dissectors/packet-prp.c b/epan/dissectors/packet-prp.c
index eda5185722..12313c9581 100644
--- a/epan/dissectors/packet-prp.c
+++ b/epan/dissectors/packet-prp.c
@@ -80,14 +80,14 @@ dissect_prp_redundancy_control_trailer(tvbuff_t *tvb, packet_info *pinfo _U_, pr
{
proto_item *ti;
proto_tree *prp_tree;
- guint i;
- guint length;
- guint offset;
- guint16 lan_id;
- guint16 lsdu_size;
- guint16 prp1_suffix;
- guint trailer_start;
- guint trailer_length;
+ guint i;
+ guint length;
+ guint offset;
+ guint16 lan_id;
+ guint16 lsdu_size;
+ guint16 prp1_suffix;
+ guint trailer_start;
+ guint trailer_length;
if (!tree)
return;
@@ -119,7 +119,7 @@ dissect_prp_redundancy_control_trailer(tvbuff_t *tvb, packet_info *pinfo _U_, pr
lsdu_size = tvb_get_ntohs(tvb, (i+2)) & 0x0fff;
if(lsdu_size == i+4-offset && (lan_id == 0xa || lan_id == 0xb))
{
- trailer_start = i;
+ trailer_start = i;
trailer_length = 4;
break;
}
@@ -141,7 +141,7 @@ dissect_prp_redundancy_control_trailer(tvbuff_t *tvb, packet_info *pinfo _U_, pr
/* We don't check the lsdu_size, we just display whether
it's correct. Helpful for testing, because different
definitions of the lsdu_size did exist. */
- trailer_start = length-6;
+ trailer_start = length-6;
trailer_length = 6;
}
}