plan9port

[fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port # fast
git clone https://src.adamsgaard.dk/plan9port.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit 8cc98332adbb236ee12a3e2e706e61566ece3885
parent 094c5a80c2a54aade5cb56f93410e791ede268b8
Author: rsc <devnull@localhost>
Date:   Tue,  4 Jan 2005 22:16:30 +0000

use 9pclient

Diffstat:
Msrc/cmd/draw/mc.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/cmd/draw/mc.c b/src/cmd/draw/mc.c @@ -14,7 +14,7 @@ #include <draw.h> #include <bio.h> #include <fcall.h> -#include <fs.h> +#include <9pclient.h> #include <thread.h> #define WIDTH 80 @@ -90,13 +90,13 @@ threadmain(int argc, char *argv[]) } columnate(); Bflush(&bout); - exits(0); + threadexitsall(0); } void error(char *s) { fprint(2, "mc: %s\n", s); - exits(s); + threadexitsall(s); } void readbuf(int fd) @@ -267,7 +267,7 @@ windowrect(struct winsize *ws) void getwidth(void) { - Fsys *fs; + CFsys *fs; char buf[500], *p, *f[10]; int fd, n, nf; struct winsize ws;