]> granicus.if.org Git - graphviz/commitdiff
Xlib plugin: remove an unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Mar 2022 18:35:18 +0000 (10:35 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 6 Mar 2022 05:28:32 +0000 (21:28 -0800)
plugin/xlib/gvdevice_xlib.c

index 52197db33b7bb491c1a38c7a27e4adc768bfacc7..89a59441c46ae50588f54f07ddf889c3e9c713c2 100644 (file)
@@ -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);