From: Matthew Fernandez Date: Sat, 5 Mar 2022 18:35:18 +0000 (-0800) Subject: Xlib plugin: remove an unnecessary cast X-Git-Tag: 4.0.0~193^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95b4b8622f8033ce80a5f8953d9103dae841bba2;p=graphviz Xlib plugin: remove an unnecessary cast --- diff --git a/plugin/xlib/gvdevice_xlib.c b/plugin/xlib/gvdevice_xlib.c index 52197db33..89a59441c 100644 --- a/plugin/xlib/gvdevice_xlib.c +++ b/plugin/xlib/gvdevice_xlib.c @@ -246,7 +246,7 @@ static void update_display(GVJ_t *job, Display *dpy) surface = cairo_xlib_surface_create(dpy, window->pix, window->visual, job->width, job->height); - job->context = (void *)cairo_create(surface); + job->context = cairo_create(surface); job->external_context = true; job->callbacks->refresh(job); cairo_surface_destroy(surface);