From 01a5589b979e046c8003c5edfda8bef7cd68e28d Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 9 Jan 2022 16:48:35 -0800 Subject: [PATCH] is_empty: return a C99 bool instead of an ambigous int --- lib/dotgen/rank.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -- 2.40.0