chiark / gitweb /
update licence to GPLv3 or later (was GPLv2 or later).
[chiark-utils.git] / cprogs / readbuffer.c
index e48e78c6ff9fd2819e4747ddd6565ec9c269e9b8..da681720fe5f3368047684833be024a1ad9cdd00 100644 (file)
@@ -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
  *
  */
 
-#include <sys/time.h>
-#include <sys/types.h>
-#include <assert.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <errno.h>
-#include <unistd.h>
-
 #include "rwbuffer.h"
 
 const char *progname= "readbuffer";
@@ -47,6 +39,7 @@ int main(int argc, const char *const *argv) {
   startup(argv);
   waitempty= (buffersize*1)/4;
   reading=1;
+  maxselfd=2;
   
   while (!seeneof || used) {