chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update licence to GPLv3 or later (was GPLv2 or later).
[chiark-utils.git]
/
cprogs
/
writebuffer.c
diff --git
a/cprogs/writebuffer.c
b/cprogs/writebuffer.c
index 9b1a368901d145365b459fabb11455ddf94bb6b2..190f152dff23710e3af9b724f9324380d28e41ed 100644
(file)
--- a/
cprogs/writebuffer.c
+++ b/
cprogs/writebuffer.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
*
* 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
* or (at your option) any later version.
*
* This is distributed in the hope that it will be useful, but
@@
-27,22
+27,19
@@
*
*/
*
*/
-#include <sys/time.h>
-#include <sys/types.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <errno.h>
-#include <unistd.h>
-
#include "rwbuffer.h"
const char *progname= "writebuffer";
#include "rwbuffer.h"
const char *progname= "writebuffer";
-int main(int argc, const char *const *argv) {
- int r, writing;
+void wrbuf_report(const char *m) { }
+int main(int argc, const char *const *argv) {
startup(argv);
startup(argv);
- writebuf_startup();
- writebuf_mainloop();
+ wrbufcore_startup();
+ while (!seeneof || used) {
+ wrbufcore_prepselect(0,1);
+ callselect();
+ wrbufcore_afterselect(0,1);
+ }
exit(0);
}
exit(0);
}