aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/8l
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-09-28 13:00:13 -0400
committerRuss Cox <rsc@golang.org>2010-09-28 13:00:13 -0400
commit05cc83bf4e2e59fa4b6c1bcd117bd85f8e4f559d (patch)
tree82b6a861d4404a7bf7eb40cd18014049c6134269 /src/cmd/8l
parentec13ed1fce4164477dece0c3486bebf93c0ad1e6 (diff)
downloadgo-05cc83bf4e2e59fa4b6c1bcd117bd85f8e4f559d.tar.xz
various: appease the ubuntu gcc monster
Silence warnings about not checking return values from read and write system calls. R=r, r2 CC=golang-dev https://golang.org/cl/2258045
Diffstat (limited to 'src/cmd/8l')
-rw-r--r--src/cmd/8l/asm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/8l/asm.c b/src/cmd/8l/asm.c
index 0675b904b9..ec35d8d519 100644
--- a/src/cmd/8l/asm.c
+++ b/src/cmd/8l/asm.c
@@ -604,7 +604,7 @@ asmb(void)
if(dlm){
char buf[8];
- write(cout, buf, INITDAT-textsize);
+ ewrite(cout, buf, INITDAT-textsize);
textsize = INITDAT;
}
@@ -1080,7 +1080,7 @@ cflush(void)
n = sizeof(buf.cbuf) - cbc;
if(n)
- write(cout, buf.cbuf, n);
+ ewrite(cout, buf.cbuf, n);
cbp = buf.cbuf;
cbc = sizeof(buf.cbuf);
}
@@ -1213,7 +1213,7 @@ datblk(int32 s, int32 n, int32 rodata)
}
}
- write(cout, buf.dbuf, n);
+ ewrite(cout, buf.dbuf, n);
if(!debug['a'])
return;