Include yesno.h first.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2004 22:57:13 +0000 (22:57 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2004 22:57:13 +0000 (22:57 +0000)
(yesno): Return bool, not int.

lib/yesno.c

index 60659a4..35d4ba7 100644 (file)
 # 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: