mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-12 19:34:40 +08:00
Include yesno.h first.
(yesno): Return bool, not int.
This commit is contained in:
parent
eb32ddf3c0
commit
8e4b7d7fa1
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user