X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fgetanswer.c;h=ed5fac056cdb98775304ce7c3bd79be45ff1e8c3;hp=d0ec6f8ec566b0d5d454f8c973e62c0910cc69eb;hb=a485ed478abbd599d8c9aab48934e7a26733ecb1;hpb=f480c03187724e54e5391ee61b810827da319a6c diff --git a/sbr/getanswer.c b/sbr/getanswer.c index d0ec6f8..ed5fac0 100644 --- a/sbr/getanswer.c +++ b/sbr/getanswer.c @@ -1,4 +1,3 @@ - /* * getanswer.c -- get a yes/no answer from the user * @@ -14,10 +13,10 @@ int getanswer (char *prompt) { - static int interactive = -1; + static int interactive = -1; - if (interactive < 0) - interactive = isatty (fileno (stdin)) ? 1 : 0; + if (interactive < 0) + interactive = isatty (fileno (stdin)) ? 1 : 0; - return (interactive ? gans (prompt, anoyes) : 1); + return (interactive ? gans (prompt, anoyes) : 1); }