aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bgp.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-11-22 15:55:01 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-11-22 15:55:01 +0000
commit9a0020f2f9b8d954d98d15b9865a6051f8644a90 (patch)
tree4406277d2a8fdaa9edf8bd7b962eed43f8fde18e /epan/dissectors/packet-bgp.c
parent0e4856e8b9200bc5668f86aab1af8ddd2d27b9f2 (diff)
From Peter (bug 2942):
Allow optimalization with -ftracer. svn path=/trunk/; revision=26822
Diffstat (limited to 'epan/dissectors/packet-bgp.c')
-rw-r--r--epan/dissectors/packet-bgp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bgp.c b/epan/dissectors/packet-bgp.c
index 9b9b78e0c6..6d0e4b5162 100644
--- a/epan/dissectors/packet-bgp.c
+++ b/epan/dissectors/packet-bgp.c
@@ -2623,7 +2623,7 @@ dissect_bgp_capability(tvbuff_t *tvb, proto_tree *tree)
}
static void
-dissect_bgp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
+dissect_bgp_pdu(tvbuff_t *volatile tvb, packet_info *pinfo, proto_tree *tree,
gboolean first)
{
guint16 bgp_len; /* Message length */
@@ -2740,7 +2740,7 @@ dissect_bgp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
guint length_remaining;
guint length;
volatile gboolean first = TRUE; /* TRUE for the first BGP message in packet */
- tvbuff_t *next_tvb;
+ tvbuff_t *volatile next_tvb;
if (check_col(pinfo->cinfo, COL_PROTOCOL))
col_set_str(pinfo->cinfo, COL_PROTOCOL, "BGP");