[PATCH 27/71] drm: fixed call to _cairo_atomic_ptr_cmpxchg()

"Enrico Weigelt, metux IT consult" <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Signed-off-by: Enrico Weigelt, metux IT consult <[email protected]>
---
 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 418c3c6d5..2ebbdbd5e 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.11.0.rc0.7.gbe5a750

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.