]> granicus.if.org Git - graphviz/commitdiff
_dot_splines: remove unnecessary cast and address operations
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 7 Oct 2021 02:55:29 +0000 (19:55 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 10 Oct 2021 18:15:10 +0000 (11:15 -0700)
lib/dotgen/dotsplines.c

index cab60f67498003d17249373d262f0e2afff00ee5..3abe30e87c63101e2e258aad95ff69d9a6fa7fb7 100644 (file)
@@ -418,8 +418,7 @@ static void _dot_splines(graph_t * g, int normalize)
      * alternatively, the edges would be routed identically if
      * routed separately.
      */
-    qsort((char *) &edges[0], n_edges, sizeof(edges[0]),
-         (qsort_cmpf) edgecmp);
+    qsort(edges, n_edges, sizeof(edges[0]), (qsort_cmpf)edgecmp);
 
     /* FIXME: just how many boxes can there be? */
     P->boxes = N_NEW(n_nodes + 20 * 2 * NSUB, boxf);