ref: 0fdf9345d3f0fa4f4d36b01ae6ce9aac6a917ab8
parent: c6963d45e3766abc067d3503280b3b11f4847630
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Aug 16 11:12:23 EDT 2023
upas/marshal: use IOUNIT
--- a/sys/src/cmd/upas/marshal/marshal.c
+++ b/sys/src/cmd/upas/marshal/marshal.c
@@ -991,7 +991,7 @@
tee(int in, int out1, int out2)
{
int n;
- char buf[8*1024];
+ char buf[IOUNIT];
while ((n = read(in, buf, sizeof buf)) > 0){
if(out1 != -1 && write(out1, buf, n) != n)
@@ -1640,7 +1640,7 @@
void
Bdrain(Biobuf *b)
{
- char buf[8192];
+ char buf[IOUNIT];
while(Bread(b, buf, sizeof buf) > 0)
;
--
⑨