diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-06-19 13:24:43 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-06-19 13:24:43 +0000 |
commit | f39c0913edce919578c54fc2e7a2c113de653a3f (patch) | |
tree | dd73b15ca8aa9a0da78a848ed2d65828d68043ca /epan | |
parent | d2b78d48f208da31d874b998a27ab4eef828eb8a (diff) |
Mark some variables as volatile to avoid compiler warnings.
svn path=/trunk/; revision=43357
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-windows-common.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/epan/dissectors/packet-windows-common.c b/epan/dissectors/packet-windows-common.c index 2b4891035e..a74403fa2f 100644 --- a/epan/dissectors/packet-windows-common.c +++ b/epan/dissectors/packet-windows-common.c @@ -2602,11 +2602,12 @@ dissect_nt_sec_desc(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree = NULL; guint16 revision; int start_offset = offset; - int item_offset, end_offset; + int volatile end_offset; + int item_offset; guint32 owner_sid_offset; - guint32 group_sid_offset; - guint32 sacl_offset; - guint32 dacl_offset; + guint32 volatile group_sid_offset; + guint32 volatile sacl_offset; + guint32 volatile dacl_offset; item = proto_tree_add_text(parent_tree, tvb, offset, -1, "NT Security Descriptor"); @@ -2674,7 +2675,7 @@ dissect_nt_sec_desc(tvbuff_t *tvb, int offset, packet_info *pinfo, */ THROW(ReportedBoundsError); } - TRY{ + TRY{ offset = dissect_nt_sid(tvb, item_offset, tree, "Owner", NULL, -1); if (offset > end_offset) end_offset = offset; |