From df92274787edc2d5cba32df3c9c191d8378f8325 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Fri, 28 Oct 2016 19:00:26 +0300 Subject: [PATCH] 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. --- src/pulse/thread-mainloop.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pulse/thread-mainloop.h b/src/pulse/thread-mainloop.h index 40278b4d7..e69298aa0 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;