From 7eb5e83b8dd134199f534ed09a722e53b85acc1d Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 25 Mar 2012 19:08:04 +0200 Subject: [PATCH] doit, tiny rewrite --- src/frontend/subckt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontend/subckt.c b/src/frontend/subckt.c index 90be41da8..f06df15d7 100644 --- a/src/frontend/subckt.c +++ b/src/frontend/subckt.c @@ -674,16 +674,16 @@ doit(struct line *deck) { #ifdef TRACE /* Added by H.Tanaka to display converted deck */ { - struct line *c; + struct line *c = deck; printf("Converted deck\n"); - for (c = deck; c; c = c->li_next) { + for (; c; c = c->li_next) { printf( "%s\n",c->li_line); } } { - wordlist * w; + wordlist *w = modnames; printf("Models:\n"); - for(w = modnames; w; w = w->wl_next) + for(; w; w = w->wl_next) printf("%s\n",w->wl_word); } #endif