projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb32ddf
)
Include yesno.h first.
author
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 2 Aug 2004 22:57:13 +0000
(22:57 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 2 Aug 2004 22:57:13 +0000
(22:57 +0000)
(yesno): Return bool, not int.
lib/yesno.c
patch
|
blob
|
history
diff --git
a/lib/yesno.c
b/lib/yesno.c
index
60659a4
..
35d4ba7
100644
(file)
--- a/
lib/yesno.c
+++ b/
lib/yesno.c
@@
-19,11
+19,12
@@
# include <config.h>
#endif
+#include "yesno.h"
+
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include "unlocked-io.h"
-#include "yesno.h"
/* Read one line from standard input
and return nonzero if that line begins with y or Y,
@@
-31,7
+32,7
@@
extern int rpmatch (char const *response);
-int
+bool
yesno (void)
{
/* We make some assumptions here: