X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=blobdiff_plain;f=cprogs%2Fwritebuffer.c;h=da47cea862379581e8458ec92a5d4bdbedf98d63;hp=9b1a368901d145365b459fabb11455ddf94bb6b2;hb=refs%2Fheads%2Forigin;hpb=737b84851cd8b3dd1d9f1920201127eac693dffb diff --git a/cprogs/writebuffer.c b/cprogs/writebuffer.c index 9b1a368..da47cea 100644 --- 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 - * 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,27 +22,25 @@ * 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 "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); - writebuf_startup(); - writebuf_mainloop(); + wrbufcore_startup(); + while (!seeneof || used) { + wrbufcore_prepselect(0,1); + callselect(); + wrbufcore_afterselect(0,1); + } exit(0); }