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

index 44862a75752611e3335c7131b967dde9fb118bbf..8f9a14416a1d2a99b0990525c4d96261e5281f90 100644 (file)
@@ -601,9 +601,8 @@ static void set_parent(graph_t* g, graph_t* p)
     node_induce(p, g);
 }
 
-static int is_empty(graph_t * g)
-{
-    return (!agfstnode(g));
+static bool is_empty(graph_t *g) {
+    return !agfstnode(g);
 }
 
 static bool is_a_strong_cluster(graph_t * g)