diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/9pserve.c | 8 | ||||
-rw-r--r-- | src/cmd/acme/acme.c | 2 | ||||
-rw-r--r-- | src/cmd/plumb/rules.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/9pserve.c b/src/cmd/9pserve.c index 44965a13..8acd5524 100644 --- a/src/cmd/9pserve.c +++ b/src/cmd/9pserve.c @@ -167,7 +167,7 @@ threadmain(int argc, char **argv) void mainproc(void *v) { - int n; + int n, nn; Fcall f; USED(v); @@ -186,8 +186,10 @@ mainproc(void *v) f.tag = NOTAG; n = convS2M(&f, vbuf, sizeof vbuf); if(verbose > 1) fprint(2, "* <- %F\n", &f); - write(1, vbuf, n); - n = read9pmsg(0, vbuf, sizeof vbuf); + nn = write(1, vbuf, n); + if(n != nn) + sysfatal("error writing Tversion: %r\n"); + n = threadread9pmsg(0, vbuf, sizeof vbuf); if(convM2S(vbuf, n, &f) != n) sysfatal("convM2S failure"); if(f.msize < msize) diff --git a/src/cmd/acme/acme.c b/src/cmd/acme/acme.c index 4e047c1d..87924caa 100644 --- a/src/cmd/acme/acme.c +++ b/src/cmd/acme/acme.c @@ -63,8 +63,6 @@ threadmain(int argc, char *argv[]) int ncol; Display *d; -extern int _threaddebuglevel; -_threaddebuglevel = ~0; rfork(RFENVG|RFNAMEG); ncol = -1; diff --git a/src/cmd/plumb/rules.c b/src/cmd/plumb/rules.c index b51bb61f..52a3d8e5 100644 --- a/src/cmd/plumb/rules.c +++ b/src/cmd/plumb/rules.c @@ -127,7 +127,7 @@ popinput(void) return 1; } -int +static int getc(void) { if(input == nil) |