projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(parse_user_spec) [__DJGPP__]: Make function know
[gnulib.git]
/
lib
/
yesno.c
diff --git
a/lib/yesno.c
b/lib/yesno.c
index
f69954d
..
44c437c
100644
(file)
--- 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. */
and return nonzero if that line begins with y or Y,
otherwise return 0. */
-#ifdef HAVE_RPMATCH
+int rpmatch ();
+
int
yesno ()
{
int
yesno ()
{
@@
-49,19
+50,3
@@
yesno ()
return rpmatch (buf) == 1;
}
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