summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-02 22:57:13 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-02 22:57:13 +0000
commit8e4b7d7fa15a73dcb6d65b3b2c3830c37c44e3a3 (patch)
tree4eb46336c14f77ead15b986bc183e3e964988067 /lib
parenteb32ddf3c0710c3a94bc08b3a4f93856b46cb0c1 (diff)
downloadcoreutils-8e4b7d7fa15a73dcb6d65b3b2c3830c37c44e3a3.tar.xz
Include yesno.h first.
(yesno): Return bool, not int.
Diffstat (limited to 'lib')
-rw-r--r--lib/yesno.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/yesno.c b/lib/yesno.c
index 60659a463..35d4ba767 100644
--- 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: