From 84c5e8739e0a8f00efebbee0562d6eae60e4ded8 Mon Sep 17 00:00:00 2001 From: dwarning Date: Wed, 14 Nov 2007 20:24:35 +0000 Subject: [PATCH] one only "one" times --- src/frontend/inp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index 046bea3e1..c65fb77a7 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -643,6 +643,7 @@ inp_dodeck(struct line *deck, char *tt, wordlist *end, bool reuse, bool noparse, ii; bool brief; int print_listing; + static int one; /* First throw away any old error messages there might be and fix * the case of the lines. */ @@ -688,7 +689,6 @@ inp_dodeck(struct line *deck, char *tt, wordlist *end, bool reuse, eev = eev->va_next; } for (eev = ct->ci_vars; eev; eev = eev->va_next) { - static int one = 1; switch (eev->va_type) { case VT_BOOL: break; @@ -822,7 +822,7 @@ inp_dodeck(struct line *deck, char *tt, wordlist *end, bool reuse, eev = eev->va_next; } for (eev = ct->ci_vars; eev; eev = eev->va_next) { - static int one = 1; + one = 1; switch (eev->va_type) { case VT_BOOL: if_option(ct->ci_ckt, eev->va_name,