aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/5l
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/5l
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/5l')
-rw-r--r--src/cmd/5l/asm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/5l/asm.c b/src/cmd/5l/asm.c
index 45e6e734fb..aeab60a684 100644
--- a/src/cmd/5l/asm.c
+++ b/src/cmd/5l/asm.c
@@ -482,7 +482,7 @@ asmb(void)
if(dlm){
char buf[8];
- write(cout, buf, INITDAT-textsize);
+ ewrite(cout, buf, INITDAT-textsize);
textsize = INITDAT;
}
for(t = 0; t < datsize; t += sizeof(buf)-100) {
@@ -987,7 +987,7 @@ cflush(void)
/* no bug if cbc < 0 since obuf(cbuf) followed by ibuf in buf! */
n = sizeof(buf.cbuf) - cbc;
if(n)
- write(cout, buf.cbuf, n);
+ ewrite(cout, buf.cbuf, n);
cbp = buf.cbuf;
cbc = sizeof(buf.cbuf);
}
@@ -1398,7 +1398,7 @@ datblk(int32 s, int32 n, int str)
break;
}
}
- write(cout, buf.dbuf, n);
+ ewrite(cout, buf.dbuf, n);
}
void