From ab4a2f8947255f60eb82d28556ef3558826a23ff Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 14 Nov 2020 12:10:57 -0800 Subject: [PATCH] add a return value to update() Related to #1801. --- lib/common/ns.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/common/ns.c b/lib/common/ns.c index 5dc5a1df3..2d509ce51 100644 --- a/lib/common/ns.c +++ b/lib/common/ns.c @@ -592,7 +592,7 @@ static void rerank(Agnode_t * v, int delta) /* e is the tree edge that is leaving and f is the nontree edge that * is entering. compute new cut values, ranks, and exchange e and f. */ -static void +static int update(edge_t * e, edge_t * f) { int cutvalue, delta; @@ -628,6 +628,7 @@ update(edge_t * e, edge_t * f) ED_cutvalue(e) = 0; exchange_tree_edges(e, f); dfs_range(lca, ND_par(lca), ND_low(lca)); + return 0; } static void scan_and_normalize(void) -- 2.40.0