From: Matthew Fernandez Date: Mon, 10 Jan 2022 00:48:35 +0000 (-0800) Subject: is_empty: return a C99 bool instead of an ambigous int X-Git-Tag: 3.0.0~79^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01a5589b979e046c8003c5edfda8bef7cd68e28d;p=graphviz is_empty: return a C99 bool instead of an ambigous int --- diff --git a/lib/dotgen/rank.c b/lib/dotgen/rank.c index 44862a757..8f9a14416 100644 --- a/lib/dotgen/rank.c +++ b/lib/dotgen/rank.c @@ -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)