X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fyesno.c;h=54691b7ff999fdc5b348233e487d28d70e4523ab;hb=fdbc2d4ba69ef24b623b87cb6fd2114215e7b52b;hp=2a6696cd6d1e4d15752636a1fd2e106ea438c3a3;hpb=40d66dc7f516cb90c73438c46663bf8454ee0760;p=gnulib.git diff --git a/lib/yesno.c b/lib/yesno.c index 2a6696cd6..54691b7ff 100644 --- a/lib/yesno.c +++ b/lib/yesno.c @@ -1,5 +1,5 @@ /* yesno.c -- read a yes/no response from stdin - Copyright (C) 1990, 1998, 2001, 2003 Free Software Foundation, Inc. + Copyright (C) 1990, 1998, 2001, 2003, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,10 +19,15 @@ # include #endif +#include "yesno.h" + #include #include #include -#include "unlocked-io.h" + +#if USE_UNLOCKED_IO +# include "unlocked-io.h" +#endif /* Read one line from standard input and return nonzero if that line begins with y or Y, @@ -30,8 +35,8 @@ extern int rpmatch (char const *response); -int -yesno () +bool +yesno (void) { /* We make some assumptions here: a) leading white space in the response are not vital