From 9645b74279cc1984bc7eb8ce02cc4a535b91b00a Mon Sep 17 00:00:00 2001 From: erg Date: Fri, 4 Feb 2011 18:36:12 +0000 Subject: [PATCH] Fix declarations to appear at top of block to satisfy older compilers. --- lib/dotgen/mincross.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dotgen/mincross.c b/lib/dotgen/mincross.c index eb551a05c..7d23f8d7a 100644 --- a/lib/dotgen/mincross.c +++ b/lib/dotgen/mincross.c @@ -236,7 +236,6 @@ static void ordered_edges(graph_t * g) } else { - if (N_ordering) do_ordering_for_nodes (g); #ifndef WITH_CGRAPH /* search meta-graph to find subgraphs that may be ordered */ graph_t *mg, *subg; @@ -248,15 +247,16 @@ static void ordered_edges(graph_t * g) for (me = agfstout(mg, mm); me; me = agnxtout(mg, me)) { mn = me->head; subg = agusergraph(mn); - /* clusters are processed by seperate calls to ordered_edges */ #else /* WITH_CGRAPH */ graph_t *subg; for (subg = agfstsubg(g); subg; subg = agnxtsubg(subg)) { #endif /* WITH_CGRAPH */ + /* clusters are processed by separate calls to ordered_edges */ if (!is_cluster(subg)) ordered_edges(subg); } + if (N_ordering) do_ordering_for_nodes (g); } } -- 2.40.0