X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=blobdiff_plain;f=cprogs%2Freadbuffer.c;h=00df636489e37199af10989dd6b6c592a06455ce;hp=e48e78c6ff9fd2819e4747ddd6565ec9c269e9b8;hb=2cc287fb570f7ae032e12cdbfbd77d4489e7566b;hpb=737b84851cd8b3dd1d9f1920201127eac693dffb diff --git a/cprogs/readbuffer.c b/cprogs/readbuffer.c index e48e78c..00df636 100644 --- a/cprogs/readbuffer.c +++ b/cprogs/readbuffer.c @@ -13,7 +13,7 @@ * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2, + * published by the Free Software Foundation; either version 3, * or (at your option) any later version. * * This is distributed in the hope that it will be useful, but @@ -22,19 +22,12 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public - * License along with this file; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * License along with this file; if not, consult the Free Software + * Foundation's website at www.fsf.org, or the GNU Project website at + * www.gnu.org. * */ -#include -#include -#include -#include -#include -#include -#include - #include "rwbuffer.h" const char *progname= "readbuffer"; @@ -47,6 +40,7 @@ int main(int argc, const char *const *argv) { startup(argv); waitempty= (buffersize*1)/4; reading=1; + maxselfd=2; while (!seeneof || used) {