static int interactive = -1;
if (interactive < 0)
- interactive = isatty (fileno (stdin)) ? 1 : 0;
+ interactive = isatty (fileno (stdin));
- return (interactive ? read_switch (prompt, anoyes) : 1);
+ return interactive ? read_switch(prompt, anoyes) : 1;
}