]> granicus.if.org Git - graphviz/commitdiff
cgraph agsubnodeidcmpf: remove unnecessary casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 8 Jul 2022 00:24:05 +0000 (17:24 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 24 Jul 2022 04:51:17 +0000 (21:51 -0700)
lib/cgraph/node.c

index 0f96ab7780896d33b4bbb0877d85f87785db25be..4cb7fed8ea4d520be366128a8ac51b05f75a0078 100644 (file)
@@ -278,10 +278,9 @@ static int agsubnodeidcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc)
 {
     (void)d; /* unused */
     (void)disc; /* unused */
-    Agsubnode_t *sn0, *sn1;
 
-    sn0 = (Agsubnode_t *) arg0;
-    sn1 = (Agsubnode_t *) arg1;
+    Agsubnode_t *sn0 = arg0;
+    Agsubnode_t *sn1 = arg1;
     
     if (AGID(sn0->node) < AGID(sn1->node)) return -1;
     if (AGID(sn0->node) > AGID(sn1->node)) return 1;