X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gprof%2Fcg_dfn.c;h=1da4c66b84f215b80774f5ed12ba5d5d289ab015;hb=160f8a8f32f5566077e4a4b13943bc7c70bc5da2;hp=6d19afcb587a32c4be2620ccbf848b9d50444afd;hpb=ecba005fa15c10841bb06839055bd273649861df;p=deliverable%2Fbinutils-gdb.git diff --git a/gprof/cg_dfn.c b/gprof/cg_dfn.c index 6d19afcb58..1da4c66b84 100644 --- a/gprof/cg_dfn.c +++ b/gprof/cg_dfn.c @@ -92,7 +92,7 @@ find_cycle (Sym *child) Sym *head = 0; Sym *tail; int cycle_top; - int index; + int cycle_index; for (cycle_top = dfn_depth; cycle_top > 0; --cycle_top) { @@ -169,9 +169,9 @@ find_cycle (Sym *child) print_name (head); printf ("\n")); } - for (index = cycle_top + 1; index <= dfn_depth; ++index) + for (cycle_index = cycle_top + 1; cycle_index <= dfn_depth; ++cycle_index) { - child = dfn_stack[index].sym; + child = dfn_stack[cycle_index].sym; if (child->cg.cyc.head == child) { /* @@ -217,7 +217,8 @@ pre_visit (Sym *parent) if (dfn_depth >= dfn_maxdepth) { dfn_maxdepth += DFN_INCR_DEPTH; - dfn_stack = xrealloc (dfn_stack, dfn_maxdepth * sizeof *dfn_stack); + dfn_stack = (DFN_Stack *) xrealloc (dfn_stack, + dfn_maxdepth * sizeof *dfn_stack); } dfn_stack[dfn_depth].sym = parent;