]> granicus.if.org Git - graphviz/commitdiff
NodePrint: remove an unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 6 Nov 2021 00:28:42 +0000 (17:28 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 10 Nov 2021 14:46:50 +0000 (06:46 -0800)
lib/neatogen/overlap.c

index 0c9519b788cadb18e41b854ed131dfec2446cb73..f5573518ab536e97b7dfd05ee9265b59ba50803e 100644 (file)
@@ -112,11 +112,8 @@ static int NodeComp(const void* a,const void* b) {
 }
 
 static void NodePrint(const void* a) {
-  const scan_point *aa;
-
-  aa = (const scan_point *) a;
+  const scan_point *aa = a;
   fprintf(stderr, "node {%d, %f, %d}\n", aa->node, aa->x, aa->status);
-
 }
 
 static void InfoPrint(void* a) {