]> granicus.if.org Git - graphviz/commitdiff
is_internal_to_cluster; return a C99 bool instead of an ambiguous int
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 10 Jan 2022 00:49:59 +0000 (16:49 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 10 Jan 2022 15:51:35 +0000 (07:51 -0800)
lib/dotgen/rank.c

index 053ced9622d9765c8f9156bafba8b5c1bbb4b3ab..35f1f68a251541a319b40a91ea515441b551f36a 100644 (file)
@@ -758,19 +758,17 @@ static graph_t *dot_lca(graph_t * c0, graph_t * c1)
     return c0;
 }
 
-static int is_internal_to_cluster(edge_t * e)
+static bool is_internal_to_cluster(edge_t * e)
 {
     graph_t *par, *ct, *ch;
     ct = ND_clust(agtail(e));
     ch = ND_clust(aghead(e));
     if (ct == ch)
-       return TRUE;
+       return true;
     par = dot_lca(ct, ch);
-    /* if (par == agroot(par)) */
-       /* return FALSE; */
-    if ((par == ct) || (par == ch))
-       return TRUE;
-    return FALSE;
+    if (par == ct || par == ch)
+       return true;
+    return false;
 }
 
 static node_t* Last_node;