[cairo] [PATCH v8 30/71] drm: fixed call to _cairo_atomic_ptr_cmpxchg()

Enrico Weigelt, metux IT consult enrico.weigelt at gr13.net
Thu Jun 30 15:46:08 UTC 2016


Signed-off-by: Enrico Weigelt, metux IT consult <enrico.weigelt at gr13.net>
---
 src/drm/cairo-drm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/drm/cairo-drm.c b/src/drm/cairo-drm.c
index 418c3c6..2ebbdbd 100644
--- a/src/drm/cairo-drm.c
+++ b/src/drm/cairo-drm.c
@@ -83,7 +83,7 @@ _device_finish (void *abstract_device)
 
     CAIRO_MUTEX_UNLOCK (_cairo_drm_device_mutex);
 
-    if (_cairo_atomic_ptr_cmpxchg (&_cairo_drm_default_device,
+    if (_cairo_atomic_ptr_cmpxchg ((void**)&_cairo_drm_default_device,
 				   device, NULL))
     {
 	cairo_device_destroy (&device->base);
-- 
2.6.4.442.g545299f



More information about the cairo mailing list