]> granicus.if.org Git - graphviz/commitdiff
remove unnecessary cast in gvjobs_next
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 21 Jun 2021 00:49:53 +0000 (17:49 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Jun 2021 18:57:13 +0000 (11:57 -0700)
The result of zmalloc, void*, implicitly coerces to all other pointer types.

lib/gvc/gvjobs.c

index 670b758a6713cb358975f87429237898001c3542..91f0dc2e02e035fc83afd9d1179a251b0266093d 100644 (file)
@@ -101,7 +101,7 @@ GVJ_t *gvjobs_next(GVC_t * gvc)
 
 gv_argvlist_t *gvNEWargvlist(void)
 {
-    return (gv_argvlist_t*)zmalloc(sizeof(gv_argvlist_t));
+    return zmalloc(sizeof(gv_argvlist_t));
 }
 
 void gv_argvlist_set_item(gv_argvlist_t *list, int index, char *item)