-
/*
* getanswer.c -- get a yes/no answer from the user
*
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);
}