aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-11-03 23:41:59 +0000
committerEvan Huus <eapache@gmail.com>2012-11-03 23:41:59 +0000
commit13f8a0466cb3cbf63c8f8bb9eb2dee513a6623bb (patch)
tree41a3b4640f2205319701cf5487bfd209ffbd295b /file.c
parent5b2890e573dd855795c6a55d9a00f3564d2f564e (diff)
Make a few variables volatile to satisfy gcc.
svn path=/trunk/; revision=45886
Diffstat (limited to 'file.c')
-rw-r--r--file.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/file.c b/file.c
index f5df5089df..75c7545afa 100644
--- a/file.c
+++ b/file.c
@@ -505,7 +505,7 @@ cf_read(capture_file *cf, gboolean reloading)
gboolean stop_flag;
GTimeVal start_time;
dfilter_t *dfcode;
- gboolean create_proto_tree;
+ volatile gboolean create_proto_tree;
guint tap_flags;
gboolean compiled;
@@ -768,12 +768,12 @@ cf_start_tail(capture_file *cf, const char *fname, gboolean is_tempfile, int *er
cf_read_status_t
cf_continue_tail(capture_file *cf, volatile int to_read, int *err)
{
- gchar *err_info;
- int newly_displayed_packets = 0;
- dfilter_t *dfcode;
- gboolean create_proto_tree;
- guint tap_flags;
- gboolean compiled;
+ gchar *err_info;
+ int newly_displayed_packets = 0;
+ dfilter_t *dfcode;
+ volatile gboolean create_proto_tree;
+ guint tap_flags;
+ gboolean compiled;
/* Compile the current display filter.
* We assume this will not fail since cf->dfilter is only set in