]> granicus.if.org Git - graphviz/commitdiff
gvcolor.c: remove an unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 13 Nov 2021 02:35:12 +0000 (18:35 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 19 Nov 2021 01:50:47 +0000 (17:50 -0800)
cmd/tools/gvcolor.c

index 05c7176c5ee7ba7df74b2e8d5d59e6d003a70ea5..42c378c7b8ee4ea380842c2bd56f6920aec0e36c 100644 (file)
@@ -162,7 +162,7 @@ static void color(Agraph_t * g)
            n = nlist[i];
            ND_relrank(n) = maxrank - ND_relrank(n);
        }
-    qsort((void *) nlist, nnodes, sizeof(Agnode_t *),
+    qsort(nlist, nnodes, sizeof(Agnode_t *),
          (int (*)(const void *, const void *)) cmpf);
 
     /* this is the pass that pushes the colors through the edges */