diff options
author | Tanu Kaskinen <tanuk@iki.fi> | 2016-10-28 19:00:26 +0300 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2017-04-06 22:54:46 +0300 |
commit | df92274787edc2d5cba32df3c9c191d8378f8325 (patch) | |
tree | 0b0eb08cd4aafd4f7b0f1c10d4d3d6f77c667bd9 | |
parent | b667fb22e43d9403643fa1cfd7ebaecdf60a430d (diff) |
thread-mainloop: fix volatile use in example
In the example, drain_result is a volatile pointer to an int, not
a regular pointer to a volatile int.
-rw-r--r-- | src/pulse/thread-mainloop.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulse/thread-mainloop.h b/src/pulse/thread-mainloop.h index 40278b4d..e69298aa 100644 --- a/src/pulse/thread-mainloop.h +++ b/src/pulse/thread-mainloop.h @@ -164,7 +164,7 @@ PA_C_DECL_BEGIN * access this data safely, we must extend our example a bit: * * \code - * static volatile int *drain_result = NULL; + * static int * volatile drain_result = NULL; * * static void my_drain_callback(pa_stream*s, int success, void *userdata) { * pa_threaded_mainloop *m; |