From 6da439dffd58f750f0b5351286c4a9b41caa61a6 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 9 Feb 2013 18:36:44 +0100 Subject: [PATCH] inp_readall(): rename local variables --- src/frontend/inpcom.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 4a1a76a07..07ac13172 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -825,12 +825,12 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name, bool c if (ft_ngdebug) { /*debug: print into file*/ - FILE *fdo = fopen("debug-out.txt", "w"); - struct line *tmp_ptr1; - for (tmp_ptr1 = cc; tmp_ptr1 != NULL; tmp_ptr1 = tmp_ptr1->li_next) - fprintf(fdo, "%d %d %s\n", tmp_ptr1->li_linenum_orig, tmp_ptr1->li_linenum, tmp_ptr1->li_line); + FILE *fd = fopen("debug-out.txt", "w"); + struct line *t; + for (t = cc; t; t = t->li_next) + fprintf(fd, "%d %d %s\n", t->li_linenum_orig, t->li_linenum, t->li_line); + fclose(fd); - (void) fclose(fdo); fprintf(stdout, "max line length %d, max subst. per line %d, number of lines %d\n", (int) max_line_length, no_braces, dynmaxline); }