From: Jim Meyering Date: Sun, 21 Jul 1996 22:48:41 +0000 (+0000) Subject: (yesno) [!HAVE_RPMATCH]: Remove function since we'll X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68a08efda875a2dde4556ff451588751dd89da7f;p=pspp (yesno) [!HAVE_RPMATCH]: Remove function since we'll always use the rpmatch-based version. Declare rpmatch. --- diff --git a/lib/yesno.c b/lib/yesno.c index f69954d1d1..44c437caf7 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