]> granicus.if.org Git - graphviz/commitdiff
GDK plugin writer: remove an unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 3 Apr 2022 19:50:25 +0000 (12:50 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 9 Apr 2022 01:03:37 +0000 (18:03 -0700)
plugin/gdk/gvdevice_gdk.c

index 001bf14ddc72400950daba9a49c6ad8c275dc8fb..0591bbe7a620c36634a8791489193927d5c17a4f 100644 (file)
@@ -56,7 +56,7 @@ argb2rgba ( unsigned int width, unsigned int height, char *data)
 static gboolean
 writer ( const gchar *buf, gsize count, GError **error, gpointer data)
 {
-  return count == gvwrite((GVJ_t *)data, buf, count);
+  return count == gvwrite(data, buf, count);
 }
 
 static void gdk_format(GVJ_t * job)