From: ellson Date: Tue, 19 Jul 2005 13:08:22 +0000 (+0000) Subject: Fix: cc-1241 cc: ERROR File = neatoinit.c, Line = 675 X-Git-Tag: LAST_LIBGRAPH~32^2~7411 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19724e820fe73f6f69f4a65a74179105cdb65bde;p=graphviz Fix: cc-1241 cc: ERROR File = neatoinit.c, Line = 675 A declaration cannot appear after an executable statement in a block. --- diff --git a/lib/neatogen/neatoinit.c b/lib/neatogen/neatoinit.c index afe0cbcc6..f477ef1c4 100644 --- a/lib/neatogen/neatoinit.c +++ b/lib/neatogen/neatoinit.c @@ -668,12 +668,12 @@ static int checkEdge(PointMap * pm, edge_t * ep, int idx) static void dfsCycle (vtx_data* graph, int i) { - node_t* np = graph[i].np; - node_t* hp; - ND_mark(np) = TRUE; - ND_onstack(np) = TRUE; + node_t *np, *hp; int j, e, f; + np = graph[i].np; + ND_mark(np) = TRUE; + ND_onstack(np) = TRUE; for (e = 1; e < graph[i].nedges; e++) { if (graph[i].edists[e] == 1.0) continue; /* in edge */ j = graph[i].edges[e];