projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rearranged whitespace (and comments) in all the code!
[mmh]
/
sbr
/
getanswer.c
diff --git
a/sbr/getanswer.c
b/sbr/getanswer.c
index
d0ec6f8
..
ed5fac0
100644
(file)
--- a/
sbr/getanswer.c
+++ b/
sbr/getanswer.c
@@
-1,4
+1,3
@@
-
/*
* getanswer.c -- get a yes/no answer from the user
*
/*
* getanswer.c -- get a yes/no answer from the user
*
@@
-14,10
+13,10
@@
int
getanswer (char *prompt)
{
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);
}
}