From c866517dfbf7ffb33d385313b7bf5df37e74e18c Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 8 Mar 2012 17:56:29 +0100 Subject: [PATCH] doit, drop local `i' --- src/frontend/subckt.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/frontend/subckt.c b/src/frontend/subckt.c index 963922b21..d9b36a608 100644 --- a/src/frontend/subckt.c +++ b/src/frontend/subckt.c @@ -483,19 +483,19 @@ doit(struct line *deck) { { char *s = last->li_line; - int i; txfree(gettok(&s)); sss->su_name = gettok(&s); sss->su_args = copy(s); /* count the number of args in the .subckt line */ - for (sss->su_numargs = 0, i = 0; s[i]; ) { - while (isspace(s[i])) - i++; - if (s[i]) { - sss->su_numargs++; - while (s[i] && !isspace(s[i])) - i++; - } + sss->su_numargs = 0; + for (;;) { + while (isspace(*s)) + s++; + if (*s == '\0') + break; + while (*s && !isspace(*s)) + s++; + sss->su_numargs ++; } }