diff options
author | Jim Meyering <jim@meyering.net> | 1996-07-21 22:48:41 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-07-21 22:48:41 +0000 |
commit | ccd0e2e27a55b82395db40efa74d054ee1fb5950 (patch) | |
tree | bbce39fdd0a7f0f5506464d0e16b7a5840c18f71 | |
parent | 96a39fa3f67efbd3c85b28e1bfbea254a05d91ee (diff) | |
download | coreutils-ccd0e2e27a55b82395db40efa74d054ee1fb5950.tar.xz |
(yesno) [!HAVE_RPMATCH]: Remove function since we'll
always use the rpmatch-based version.
Declare rpmatch.
-rw-r--r-- | lib/yesno.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/lib/yesno.c b/lib/yesno.c index f69954d1d..44c437caf 100644 --- a/lib/yesno.c +++ b/lib/yesno.c @@ -29,7 +29,8 @@ and return nonzero if that line begins with y or Y, otherwise return 0. */ -#ifdef HAVE_RPMATCH +int rpmatch (); + int yesno () { @@ -49,19 +50,3 @@ yesno () return rpmatch (buf) == 1; } -#else -int -yesno () -{ - int c; - int rv; - - fflush (stderr); - c = getchar (); - rv = (c == 'y') || (c == 'Y'); - while (c != EOF && c != '\n') - c = getchar (); - - return rv; -} -#endif |